diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-12-02 05:09:00 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-12-02 05:09:00 +0000 |
commit | 5369db591715e236798981519e9918558f37fc4f (patch) | |
tree | cabcdb2a86253540e5b60f39c8726783b5019d7f /llvm/lib/Transforms | |
parent | 21716dff5e2277719ce72b3db5d1a5e095e78321 (diff) | |
download | bcm5719-llvm-5369db591715e236798981519e9918558f37fc4f.tar.gz bcm5719-llvm-5369db591715e236798981519e9918558f37fc4f.zip |
Improve comment.
llvm-svn: 60398
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 109e76a47a3..7ad75d24b48 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -4437,14 +4437,13 @@ Instruction *InstCombiner::FoldOrOfICmps(Instruction &I, /// FoldOrWithConstants - This helper function folds: /// -/// ((A | B) & 1) | (B & -2) +/// ((A | B) & C1) | (B & C2) /// /// into: /// -/// (A & 1) | B +/// (A & C1) | B /// -/// The constants aren't important. Only that they don't overlap. (I.e., the XOR -/// of the two constants is "all ones".) +/// when the XOR of the two constants is "all ones" (-1). Instruction *InstCombiner::FoldOrWithConstants(BinaryOperator &I, Value *Op, Value *A, Value *B, Value *C) { ConstantInt *CI1 = dyn_cast<ConstantInt>(C); |