[llvm] [VPlan] Introduce ComputeReductionResult VPInstruction opcode. (PR #70253)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 1 13:39:34 PST 2024
================
@@ -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:
Moved as suggested. `SetInsertPoint` will set the insert point so instructions are inserted before the specified instruction (if it is an instruction), whereas when the argument is a basic block they are appended at the end of the block.
https://github.com/llvm/llvm-project/pull/70253
More information about the llvm-commits
mailing list