Skip to content

Commit 409ff97

Browse files
authored
[InstCombine] Fix comment from llvm#88193 (NFC) (llvm#91427)
It is inaccurate and needs to be corrected.
1 parent 1aaab33 commit 409ff97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ Instruction *InstCombinerImpl::visitLShr(BinaryOperator &I) {
12591259
match(Op1, m_SpecificIntAllowPoison(BitWidth - 1)))
12601260
return new ZExtInst(Builder.CreateIsNotNeg(X, "isnotneg"), Ty);
12611261

1262-
// ((X << nuw Z) sub nuw Y) >>u exact Z --> X sub nuw (Y >>u exact Z),
1262+
// ((X << nuw Z) sub nuw Y) >>u exact Z --> X sub nuw (Y >>u exact Z)
12631263
Value *Y;
12641264
if (I.isExact() &&
12651265
match(Op0, m_OneUse(m_NUWSub(m_NUWShl(m_Value(X), m_Specific(Op1)),
@@ -1279,7 +1279,7 @@ Instruction *InstCombinerImpl::visitLShr(BinaryOperator &I) {
12791279
case Instruction::And:
12801280
case Instruction::Or:
12811281
case Instruction::Xor:
1282-
// And does not work here, and sub is handled separately.
1282+
// Sub is handled separately.
12831283
return true;
12841284
}
12851285
};

0 commit comments

Comments
 (0)