[llvm-commits] [llvm] r108816 - in /llvm/trunk: lib/Target/Mips/MipsISelLowering.cpp test/CodeGen/Mips/2010-07-20-Select.ll
Bruno Cardoso Lopes
bruno.cardoso at gmail.com
Tue Jul 20 11:28:40 PDT 2010
It seems ok to me, MipsISD::SelectCC has operand 2 as true and operand
3 as false,
am I missing something?
Thanks
On Tue, Jul 20, 2010 at 8:58 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> On Jul 20, 2010, at 12:58 AM, Bruno Cardoso Lopes wrote:
>
>> Author: bruno
>> Date: Tue Jul 20 02:58:51 2010
>> New Revision: 108816
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=108816&view=rev
>> Log:
>> Fix Mips PR7473. Patch by stetorvs at gmail.com
>>
>> Added:
>> llvm/trunk/test/CodeGen/Mips/2010-07-20-Select.ll
>> Modified:
>> llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
>>
>> Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=108816&r1=108815&r2=108816&view=diff
>> ==============================================================================
>> --- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
>> +++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Tue Jul 20 02:58:51 2010
>> @@ -317,13 +317,13 @@
>> BB->addSuccessor(sinkMBB);
>>
>> // sinkMBB:
>> - // %Result = phi [ %FalseValue, copy0MBB ], [ %TrueValue, thisMBB ]
>> + // %Result = phi [ %TrueValue, thisMBB ], [ %FalseValue, copy0MBB ]
>> // ...
>> BB = sinkMBB;
>> BuildMI(*BB, BB->begin(), dl,
>> TII->get(Mips::PHI), MI->getOperand(0).getReg())
>> - .addReg(MI->getOperand(2).getReg()).addMBB(copy0MBB)
>> - .addReg(MI->getOperand(3).getReg()).addMBB(thisMBB);
>> + .addReg(MI->getOperand(2).getReg()).addMBB(thisMBB)
>> + .addReg(MI->getOperand(3).getReg()).addMBB(copy0MBB);
>>
>> MI->eraseFromParent(); // The pseudo instruction is gone now.
>> return BB;
>
> Hi Bruno,
>
> The change to the comment doesn't match the change to the code. Was that on purpose?
>
> /jakob
>
>
--
Bruno Cardoso Lopes
http://www.brunocardoso.cc
More information about the llvm-commits
mailing list