[llvm] 57a26bb - [InstCombine] Fix typo in comment (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 29 01:19:06 PDT 2020
Author: Nikita Popov
Date: 2020-08-29T10:17:17+02:00
New Revision: 57a26bb7b43556f255be1bf005e7acd8e2f6eae2
URL: https://github.com/llvm/llvm-project/commit/57a26bb7b43556f255be1bf005e7acd8e2f6eae2
DIFF: https://github.com/llvm/llvm-project/commit/57a26bb7b43556f255be1bf005e7acd8e2f6eae2.diff
LOG: [InstCombine] Fix typo in comment (NFC)
As pointed out in post-commit review of D63060.
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 42322e315a41..6812bedf26d1 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
@@ -1425,7 +1425,7 @@ Instruction *InstCombinerImpl::visitAdd(BinaryOperator &I) {
if (Instruction *SatAdd = foldToUnsignedSaturatedAdd(I))
return SatAdd;
- // usub.sat(A, B) + A => umax(A, B)
+ // usub.sat(A, B) + B => umax(A, B)
if (match(&I, m_c_BinOp(
m_OneUse(m_Intrinsic<Intrinsic::usub_sat>(m_Value(A), m_Value(B))),
m_Deferred(B)))) {
More information about the llvm-commits
mailing list