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/MachineInstr.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/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index b6d98e8e7b4..5f1bfff1c0c 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -959,8 +959,8 @@ void MachineInstr::copyPredicates(const MachineInstr *MI) { /// SawStore is set to true, it means that there is a store (or call) between /// the instruction's location and its intended destination. bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII, - bool &SawStore, - AliasAnalysis *AA) const { + AliasAnalysis *AA, + bool &SawStore) const { // Ignore stuff that we obviously can't move. if (TID->mayStore() || TID->isCall()) { SawStore = true; @@ -985,11 +985,11 @@ bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII, /// isSafeToReMat - Return true if it's safe to rematerialize the specified /// instruction which defined the specified register instead of copying it. bool MachineInstr::isSafeToReMat(const TargetInstrInfo *TII, - unsigned DstReg, - AliasAnalysis *AA) const { + AliasAnalysis *AA, + unsigned DstReg) const { bool SawStore = false; if (!TII->isTriviallyReMaterializable(this, AA) || - !isSafeToMove(TII, SawStore, AA)) + !isSafeToMove(TII, AA, SawStore)) return false; for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { const MachineOperand &MO = getOperand(i); |