diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-03-02 19:03:01 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-03-02 19:03:01 +0000 |
| commit | 62e795ab8c576f1578a6f33b06fc2ee5827365b1 (patch) | |
| tree | 029f4f3e6995e55c7d4eaca29144e96eb12ce0a8 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
| parent | 10194a425cc0a19bdbbf4e8b0b6c45561f6da589 (diff) | |
| download | bcm5719-llvm-62e795ab8c576f1578a6f33b06fc2ee5827365b1.tar.gz bcm5719-llvm-62e795ab8c576f1578a6f33b06fc2ee5827365b1.zip | |
Swap parameters of isSafeToMove and isSafeToReMat for consistency.
llvm-svn: 97578
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 6f4ca82525b..0ba38433c22 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -160,7 +160,7 @@ bool TwoAddressInstructionPass::Sink3AddrInstruction(MachineBasicBlock *MBB, MachineBasicBlock::iterator OldPos) { // Check if it's safe to move this instruction. bool SeenStore = true; // Be conservative. - if (!MI->isSafeToMove(TII, SeenStore, AA)) + if (!MI->isSafeToMove(TII, AA, SeenStore)) return false; unsigned DefReg = 0; @@ -1028,7 +1028,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { // copying it. if (DefMI && DefMI->getDesc().isAsCheapAsAMove() && - DefMI->isSafeToReMat(TII, regB, AA) && + DefMI->isSafeToReMat(TII, AA, regB) && isProfitableToReMat(regB, rc, mi, DefMI, mbbi, Dist)){ DEBUG(dbgs() << "2addr: REMATTING : " << *DefMI << "\n"); unsigned regASubIdx = mi->getOperand(DstIdx).getSubReg(); |

