diff options
author | Junmo Park <junmoz.park@samsung.com> | 2016-04-05 21:14:31 +0000 |
---|---|---|
committer | Junmo Park <junmoz.park@samsung.com> | 2016-04-05 21:14:31 +0000 |
commit | 53470fc4517c07e77c69b3e5420b75dcb7089209 (patch) | |
tree | 39784fafacbb6c4bdcc591575c41834800c9c3c1 /llvm/lib/Analysis/InstructionSimplify.cpp | |
parent | 265c344ef816a8573562fa27022b8008e0f58198 (diff) | |
download | llvm-53470fc4517c07e77c69b3e5420b75dcb7089209.zip llvm-53470fc4517c07e77c69b3e5420b75dcb7089209.tar.gz llvm-53470fc4517c07e77c69b3e5420b75dcb7089209.tar.bz2 |
Minor code cleanups. NFC.
llvm-svn: 265468
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index bb0a275..b67990a 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -2139,7 +2139,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS, return getTrue(ITy); break; case ICmpInst::ICMP_SGE: - /// For signed comparison, the values for an i1 are 0 and -1 + /// For signed comparison, the values for an i1 are 0 and -1 /// respectively. This maps into a truth table of: /// LHS | RHS | LHS >=s RHS | LHS implies RHS /// 0 | 0 | 1 (0 >= 0) | 1 @@ -2546,7 +2546,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS, return Pred == ICmpInst::ICMP_NE ? ConstantInt::getTrue(Ctx) : ConstantInt::getFalse(Ctx); } - + // Special logic for binary operators. BinaryOperator *LBO = dyn_cast<BinaryOperator>(LHS); BinaryOperator *RBO = dyn_cast<BinaryOperator>(RHS); |