[llvm] [LV] Set the underlying value of VPInstruction::Reverse (PR #173856)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 29 09:18:09 PST 2025
================
@@ -7705,17 +7705,20 @@ VPRecipeBase *VPRecipeBuilder::tryToWidenMemory(VPInstruction *VPI,
*VPI, Load->getDebugLoc());
if (Reverse) {
Builder.insert(LoadR);
- return new VPInstruction(VPInstruction::Reverse, LoadR, {}, {},
- LoadR->getDebugLoc());
+ auto *Rev = new VPInstruction(VPInstruction::Reverse, LoadR, {}, {},
+ LoadR->getDebugLoc());
+ Rev->setUnderlyingValue(Load);
----------------
fhahn wrote:
Hmm, setting the load for both the load and reverse recipe seems not ideal. It would at least deserve a comment, but I am wondering if there's a better fix
https://github.com/llvm/llvm-project/pull/173856
More information about the llvm-commits
mailing list