diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2008-08-17 20:02:02 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2008-08-17 20:02:02 +0000 |
| commit | 75d4a83f2f9db7635e8e268d0524e9dd33a445c0 (patch) | |
| tree | cbe489a190c7f749509f0dfad223d727ed5cbdc6 /llvm/lib/Transforms | |
| parent | 53b44029d663b57ddac9a042a9c04fad7762442f (diff) | |
| download | bcm5719-llvm-75d4a83f2f9db7635e8e268d0524e9dd33a445c0.tar.gz bcm5719-llvm-75d4a83f2f9db7635e8e268d0524e9dd33a445c0.zip | |
Make this comment clearer. Instead of using an ambiguous ~ (not) on an icmp
predicate, swap the order of the operands.
llvm-svn: 54907
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index defad26f8a1..a517d941c9a 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5830,7 +5830,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI, ConstantInt::get(RHSV ^ SignBit)); } - // (icmp u/s (xor A ~SignBit), C) -> (icmp ~s/u A, (xor C ~SignBit)) + // (icmp u/s (xor A ~SignBit), C) -> (icmp s/u (xor C ~SignBit), A) if (!ICI.isEquality() && (~XorCST->getValue()).isSignBit()) { const APInt &NotSignBit = XorCST->getValue(); ICmpInst::Predicate Pred = ICI.isSignedPredicate() |

