================ @@ -340,8 +340,13 @@ Value *VPInstruction::generateInstruction(VPTransformState &State, auto *Phi = State.get(getOperand(0), 0); // The loop step is equal to the vectorization factor (num of SIMD // elements) times the unroll factor (num of SIMD instructions). - Value *Step = - createStepForVF(Builder, Phi->getType(), State.VF, State.UF); + Value *Step; + { + BasicBlock *VectorPH = State.CFG.getPreheaderBBFor(this); + IRBuilder<>::InsertPointGuard Guard(Builder); + Builder.SetInsertPoint(VectorPH->getTerminator()); ---------------- fhahn wrote:
Adjusted in the latest version, thanks! https://github.com/llvm/llvm-project/pull/74762 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits