[llvm-commits] [llvm] r60397 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
clattner at apple.com
Mon Dec 1 22:36:59 PST 2008
On Dec 1, 2008, at 10:24 PM, Bill Wendling wrote:
> Others done.
>
>>> + if (V1 == B) {
>>> + Instruction *NewOp =
>>> + InsertNewInstBefore(BinaryOperator::CreateAnd(A, CI1),
>>> I);
>>> + return BinaryOperator::CreateOr(NewOp, B);
>>> + } else if (V1 == A) {
>>> + Instruction *NewOp =
>>> + InsertNewInstBefore(BinaryOperator::CreateAnd(B, CI1),
>>> I);
>>> + return BinaryOperator::CreateOr(NewOp, A);
>>> }
>>
>> Please merge these.
>>
> Maybe I'm just sleep deprived, but I don't know what you want here.
> :-) I took a stab at it.
Looks great, thanks!
-chris
More information about the llvm-commits
mailing list