mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Improve comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dda74e0702
commit
a8bb13f989
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user