[llvm] r375397 - [NFC][InstCombine] Fixup comments
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 01:21:54 PDT 2019
Author: lebedevri
Date: Mon Oct 21 01:21:54 2019
New Revision: 375397
URL: http://llvm.org/viewvc/llvm-project?rev=375397&view=rev
Log:
[NFC][InstCombine] Fixup comments
As noted in post-commit review of rL375378375378.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp?rev=375397&r1=375396&r2=375397&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp Mon Oct 21 01:21:54 2019
@@ -1103,7 +1103,7 @@ InstCombiner::canonicalizeCondSignextOfH
assert((I.getOpcode() == Instruction::Add ||
I.getOpcode() == Instruction::Or ||
I.getOpcode() == Instruction::Sub) &&
- "Expecting add/sub instruction");
+ "Expecting add/or/sub instruction");
// We have a subtraction/addition between a (potentially truncated) *logical*
// right-shift of X and a "select".
@@ -1158,7 +1158,7 @@ InstCombiner::canonicalizeCondSignextOfH
const APInt *Thr;
Value *SignExtendingValue, *Zero;
bool ShouldSignext;
- // It must be a select between two values we will later estabilish to be a
+ // It must be a select between two values we will later establish to be a
// sign-extending value and a zero constant. The condition guarding the
// sign-extension must be based on a sign bit of the same X we had in `lshr`.
if (!match(Select, m_Select(m_ICmp(Pred, m_Specific(X), m_APInt(Thr)),
More information about the llvm-commits
mailing list