]> granicus.if.org Git - llvm/commit
PHINode: introduce setIncomingValueForBlock() function, and use it.
authorWhitney Tsang <whitney.uwaterloo@gmail.com>
Mon, 17 Jun 2019 14:38:56 +0000 (14:38 +0000)
committerWhitney Tsang <whitney.uwaterloo@gmail.com>
Mon, 17 Jun 2019 14:38:56 +0000 (14:38 +0000)
commitbdd7b78551807d737c1d8a7f0541e899d67bb95c
treeaa6e1ac6567fc21843894f2d886749badce16597
parentdbb1cec2e70078e863cd9c210da60dd22227ec53
PHINode: introduce setIncomingValueForBlock() function, and use it.

Summary:
There is PHINode::getBasicBlockIndex() and PHINode::setIncomingValue()
but no function to replace incoming value for a specified BasicBlock*
predecessor.
Clearly, there are a lot of places that could use that functionality.

Reviewer: craig.topper, lebedev.ri, Meinersbur, kbarton, fhahn
Reviewed By: Meinersbur, fhahn
Subscribers: fhahn, hiraditya, zzheng, jsji, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D63338

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363566 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/CodeGen/SafeStack.cpp
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
lib/Transforms/Scalar/LoopUnswitch.cpp
lib/Transforms/Scalar/StructurizeCFG.cpp
lib/Transforms/Utils/LoopUnrollPeel.cpp
lib/Transforms/Utils/LoopUnrollRuntime.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp