Skip to content

Commit 475d7dd

Browse files
committed
[NFC][InstCombine] Fixup comments
As noted in post-commit review of rL375378375378. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375397 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3ddad0b commit 475d7dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Transforms/InstCombine/InstCombineAddSub.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ InstCombiner::canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract(
11031103
assert((I.getOpcode() == Instruction::Add ||
11041104
I.getOpcode() == Instruction::Or ||
11051105
I.getOpcode() == Instruction::Sub) &&
1106-
"Expecting add/sub instruction");
1106+
"Expecting add/or/sub instruction");
11071107

11081108
// We have a subtraction/addition between a (potentially truncated) *logical*
11091109
// right-shift of X and a "select".
@@ -1158,7 +1158,7 @@ InstCombiner::canonicalizeCondSignextOfHighBitExtractToSignextHighBitExtract(
11581158
const APInt *Thr;
11591159
Value *SignExtendingValue, *Zero;
11601160
bool ShouldSignext;
1161-
// It must be a select between two values we will later estabilish to be a
1161+
// It must be a select between two values we will later establish to be a
11621162
// sign-extending value and a zero constant. The condition guarding the
11631163
// sign-extension must be based on a sign bit of the same X we had in `lshr`.
11641164
if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)),

0 commit comments

Comments
 (0)