[llvm-branch-commits] [llvm] [DA] Add overflow check in BanerjeeMIVtest (PR #190469)
Ruoyu Qiu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Apr 6 05:31:45 PDT 2026
================
@@ -2261,7 +2261,13 @@ bool DependenceInfo::banerjeeMIVtest(const SCEV *Src, const SCEV *Dst,
const SCEV *B0;
CoefficientInfo *B = collectCoeffInfo(Dst, false, B0);
BoundInfo *Bound = new BoundInfo[MaxLevels + 1];
- const SCEV *Delta = SE->getMinusSCEV(B0, A0);
+ const SCEV *Delta = minusSCEVNoSignedOverflow(B0, A0, *SE);
+ if (!Delta) {
+ delete[] Bound;
+ delete[] A;
+ delete[] B;
----------------
cabbaken wrote:
> so could you wait for it to land and rebase after it’s merged?
Of course.
https://github.com/llvm/llvm-project/pull/190469
More information about the llvm-branch-commits
mailing list