Improve comment.
authorBill Wendling <isanbard@gmail.com>
Tue, 2 Dec 2008 05:09:00 +0000 (05:09 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 2 Dec 2008 05:09:00 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60398 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 109e76a47a30a250e504ebf7c6b710b34d5c3a9a..7ad75d24b486e4e88c44b46463ccf023deb2fbb9 100644 (file)
@@ -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);