[llvm] [VPlan] Set debug location for VPReduction/VPWidenPHI/VPWidenIntrinsicRecipe. (PR #120054)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 01:53:06 PST 2024
================
@@ -2590,7 +2591,8 @@ class VPReductionRecipe : public VPSingleDefRecipe {
VPReductionRecipe(const unsigned char SC, const RecurrenceDescriptor &R,
Instruction *I, ArrayRef<VPValue *> Operands,
VPValue *CondOp, bool IsOrdered)
- : VPSingleDefRecipe(SC, Operands, I), RdxDesc(R), IsOrdered(IsOrdered) {
+ : VPSingleDefRecipe(SC, Operands, I, I->getDebugLoc()), RdxDesc(R),
----------------
fhahn wrote:
Better to pass debug loc independent of underlying instruction & update `clone`, same for above. Then https://github.com/llvm/llvm-project/pull/120053 won't be needed
https://github.com/llvm/llvm-project/pull/120054
More information about the llvm-commits
mailing list