[llvm] 02928fc - [InstCombine] improve code comments; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 07:42:12 PDT 2021
Author: Sanjay Patel
Date: 2021-10-13T10:40:44-04:00
New Revision: 02928fcb8c64aaebd2b54d98b94a8ad83e6a4490
URL: https://github.com/llvm/llvm-project/commit/02928fcb8c64aaebd2b54d98b94a8ad83e6a4490
DIFF: https://github.com/llvm/llvm-project/commit/02928fcb8c64aaebd2b54d98b94a8ad83e6a4490.diff
LOG: [InstCombine] improve code comments; NFC
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 2f25be4fce08..4e058192a8aa 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -1950,8 +1950,8 @@ Instruction *InstCombinerImpl::foldICmpOrConstant(ICmpInst &Cmp,
}
}
- // (X | (X-1)) s< 0 --> X < 1
- // (X | (X-1)) s> -1 --> X > 0
+ // (X | (X-1)) s< 0 --> X s< 1
+ // (X | (X-1)) s> -1 --> X s> 0
Value *X;
bool TrueIfSigned;
if (isSignBitCheck(Pred, C, TrueIfSigned) &&
More information about the llvm-commits
mailing list