We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LoadStoreVectorizer.cpp
1 parent 145aa66 commit 5f530b1Copy full SHA for 5f530b1
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
@@ -1274,9 +1274,7 @@ std::optional<APInt> Vectorizer::getConstantOffsetComplexAddrs(
1274
APInt BitsAllowedToBeSet = Known.Zero.zext(IdxDiff.getBitWidth());
1275
if (Signed)
1276
BitsAllowedToBeSet.clearBit(BitWidth - 1);
1277
- if (BitsAllowedToBeSet.ult(IdxDiff.abs()))
1278
- return std::nullopt;
1279
- Safe = true;
+ Safe = BitsAllowedToBeSet.uge(IdxDiff.abs());
1280
}
1281
1282
if (Safe)
0 commit comments