[PATCH] D61011: [NFC] PHINode: introduce changeIncomingBlock() function, use it

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 06:35:05 PDT 2019


lebedev.ri created this revision.
lebedev.ri added reviewers: chandlerc, craig.topper, spatel, danielcdh.
lebedev.ri added a project: LLVM.

There is `PHINode::getBasicBlockIndex()`, `PHINode::setIncomingBlock()`
and `PHINode::getNumOperands()`, but no function to replace every
specified `BasicBlock*` predecessor with some other specified `BasicBlock*`.
Clearly, there are a lot of places that could use that functionality.


Repository:
  rL LLVM

https://reviews.llvm.org/D61011

Files:
  include/llvm/IR/Instructions.h
  lib/CodeGen/CodeGenPrepare.cpp
  lib/IR/BasicBlock.cpp
  lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  lib/Transforms/Scalar/LoopInterchange.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61011.196235.patch
Type: text/x-patch
Size: 3698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190423/482731db/attachment.bin>


More information about the llvm-commits mailing list