[llvm] [LSR] Fix matching vscale immediates (PR #100080)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 05:54:23 PDT 2024
================
@@ -947,7 +947,8 @@ static Immediate ExtractImmediate(const SCEV *&S, ScalarEvolution &SE) {
SCEV::FlagAnyWrap);
return Result;
} else if (EnableVScaleImmediates)
- if (const SCEVMulExpr *M = dyn_cast<SCEVMulExpr>(S))
+ if (const SCEVMulExpr *M = dyn_cast<SCEVMulExpr>(S);
+ M && M->getNumOperands() == 2)
----------------
MacDue wrote:
Sure, makes sense :+1:
https://github.com/llvm/llvm-project/pull/100080
More information about the llvm-commits
mailing list