Skip to content

Commit f2fad1b

Browse files
committed
Reorder checks (Addressing review comment)
1 parent be98e95 commit f2fad1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/BasicAliasAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ AliasResult BasicAAResult::aliasGEP(
12591259

12601260
bool IndicesFromRight = DecompGEP1.VarIndices.front().IsNegated == Swapped;
12611261
if (IndicesFromRight && DecompRight.NWFlags->hasNoUnsignedWrap())
1262-
if (!VLeftSize.isScalable() && VLeftSize.hasValue() &&
1262+
if (VLeftSize.hasValue() && !VLeftSize.isScalable() &&
12631263
Off.abs().uge(VLeftSize.getValue()))
12641264
return AliasResult::NoAlias;
12651265
}

0 commit comments

Comments
 (0)