[llvm] [NFC][LoopVectorize] Make replaceVPBBWithIRVPBB more efficient (PR #111514)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 08:53:07 PDT 2024
================
@@ -440,6 +440,26 @@ class VPBlockBase {
Successors.erase(Pos);
}
+ /// This function replaces one predecessor with another, useful when
+ /// trying to replace an old block in the CFG with a new one.
+ void replacePredecessor(VPBlockBase *Old, VPBlockBase *New) {
+ auto I = find(Predecessors, Old);
+ assert(I != Predecessors.end());
----------------
ayalz wrote:
Error message missing.
https://github.com/llvm/llvm-project/pull/111514
More information about the llvm-commits
mailing list