[llvm] d5c002b - [InstCombine] fix code comment to match code; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 9 11:27:37 PST 2021
Author: Sanjay Patel
Date: 2021-11-09T14:27:29-05:00
New Revision: d5c002bdc735382071e8c4d52860b706a2a4ed62
URL: https://github.com/llvm/llvm-project/commit/d5c002bdc735382071e8c4d52860b706a2a4ed62
DIFF: https://github.com/llvm/llvm-project/commit/d5c002bdc735382071e8c4d52860b706a2a4ed62.diff
LOG: [InstCombine] fix code comment to match code; NFC
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
index 8cc64950a32f1..eb1b8a29cfc5c 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
@@ -2175,7 +2175,7 @@ Instruction *InstCombinerImpl::visitSub(BinaryOperator &I) {
return replaceInstUsesWith(
I, Builder.CreateIntrinsic(Intrinsic::usub_sat, {Ty}, {X, Op1}));
- // Op0 - umax(X, Op0) --> 0 - usub.sat(X, Op1)
+ // Op0 - umax(X, Op0) --> 0 - usub.sat(X, Op0)
if (match(Op1, m_OneUse(m_c_UMax(m_Value(X), m_Specific(Op0))))) {
Value *USub = Builder.CreateIntrinsic(Intrinsic::usub_sat, {Ty}, {X, Op0});
return BinaryOperator::CreateNeg(USub);
More information about the llvm-commits
mailing list