diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-07-20 07:58:51 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-07-20 07:58:51 +0000 |
commit | ea7863647b1ad197ddaadab07288e5971485623e (patch) | |
tree | cf998bdb1efbd937c6810b72d22d686ff9dcd085 /llvm/lib | |
parent | a93fe2de3c6ae2297354f4ff1c15fd4159199f01 (diff) | |
download | bcm5719-llvm-ea7863647b1ad197ddaadab07288e5971485623e.tar.gz bcm5719-llvm-ea7863647b1ad197ddaadab07288e5971485623e.zip |
Fix Mips PR7473. Patch by stetorvs@gmail.com
llvm-svn: 108816
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index b6ff2c371d5..f67572e8041 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -317,13 +317,13 @@ MipsTargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI, 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; |