[llvm] [VPlan] Introduce ComputeReductionResult VPInstruction opcode. (PR #70253)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 20 12:03:15 PST 2023
================
@@ -456,6 +456,7 @@ void VPBasicBlock::execute(VPTransformState *State) {
// The Exit block of a loop is always set to be successor 0 of the Exiting
// block.
cast<BranchInst>(ExitingBB->getTerminator())->setSuccessor(0, NewBB);
+ State->Builder.SetInsertPoint(NewBB->getFirstNonPHI());
----------------
fhahn wrote:
This is needed to make sure the insert point for the builder is set properly for the exit/middle block.
https://github.com/llvm/llvm-project/pull/70253
More information about the llvm-commits
mailing list