Skip to content

Commit 5f530b1

Browse files
authored
[NFC] Cleanup dead code in LoadStoreVectorizer.cpp (llvm#139211)
Closes llvm#138691
1 parent 145aa66 commit 5f530b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,9 +1274,7 @@ std::optional<APInt> Vectorizer::getConstantOffsetComplexAddrs(
12741274
APInt BitsAllowedToBeSet = Known.Zero.zext(IdxDiff.getBitWidth());
12751275
if (Signed)
12761276
BitsAllowedToBeSet.clearBit(BitWidth - 1);
1277-
if (BitsAllowedToBeSet.ult(IdxDiff.abs()))
1278-
return std::nullopt;
1279-
Safe = true;
1277+
Safe = BitsAllowedToBeSet.uge(IdxDiff.abs());
12801278
}
12811279

12821280
if (Safe)

0 commit comments

Comments
 (0)