[llvm] [LV] Fix MinBWs in WidenIntrinsic case (PR #137005)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 02:05:00 PDT 2025
================
@@ -882,7 +882,9 @@ llvm::computeMinimumValueSizes(ArrayRef<BasicBlock *> Blocks, DemandedBits &DB,
// If any of M's operands demand more bits than MinBW then M cannot be
// performed safely in MinBW.
- if (any_of(MI->operands(), [&DB, MinBW](Use &U) {
+ auto *Call = dyn_cast<CallInst>(MI);
----------------
fhahn wrote:
```suggestion
auto *Call = dyn_cast<CallBase>(MI);
```
to handle all call-like instructions that way (even though it won't trigger in LV, there may be other users)?
https://github.com/llvm/llvm-project/pull/137005
More information about the llvm-commits
mailing list