[PATCH] D140347: TargetLowering: Teach DemandedBits about VSCALE
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 14:51:29 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1136
+ return false;
+ APInt VScaleResultUpperbound(64, *MaxVScale);
+ VScaleResultUpperbound *= Op.getConstantOperandAPInt(0).sextOrTrunc(64);
----------------
I'm not sure that hardcoding 64 here is the right fix. I think what we need to check is that the multiply doesn't overflow.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140347/new/
https://reviews.llvm.org/D140347
More information about the llvm-commits
mailing list