Improve comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2008-12-02 05:09:00 +00:00
parent dda74e0702
commit a8bb13f989

View File

@@ -4437,14 +4437,13 @@ Instruction *InstCombiner::FoldOrOfICmps(Instruction &I,
/// FoldOrWithConstants - This helper function folds: /// FoldOrWithConstants - This helper function folds:
/// ///
/// ((A | B) & 1) | (B & -2) /// ((A | B) & C1) | (B & C2)
/// ///
/// into: /// into:
/// ///
/// (A & 1) | B /// (A & C1) | B
/// ///
/// The constants aren't important. Only that they don't overlap. (I.e., the XOR /// when the XOR of the two constants is "all ones" (-1).
/// of the two constants is "all ones".)
Instruction *InstCombiner::FoldOrWithConstants(BinaryOperator &I, Value *Op, Instruction *InstCombiner::FoldOrWithConstants(BinaryOperator &I, Value *Op,
Value *A, Value *B, Value *C) { Value *A, Value *B, Value *C) {
ConstantInt *CI1 = dyn_cast<ConstantInt>(C); ConstantInt *CI1 = dyn_cast<ConstantInt>(C);