[PATCH] D63338: [NFC] PHINode: introduce setIncomingValueForBlock() function, and use it.

Whitney via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 09:00:22 PDT 2019


Whitney created this revision.
Whitney added reviewers: craig.topper, lebedev.ri, Meinersbur, kbarton.
Whitney added a project: LLVM.
Herald added subscribers: llvm-commits, jsji, zzheng, hiraditya.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D63338

Files:
  llvm/include/llvm/IR/Instructions.h
  llvm/lib/CodeGen/SafeStack.cpp
  llvm/lib/Transforms/Scalar/GVN.cpp
  llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
  llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
  llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
  llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63338.204779.patch
Type: text/x-patch
Size: 8380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190614/c81a177e/attachment.bin>


More information about the llvm-commits mailing list