summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-02 19:03:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-02 19:03:01 +0000
commit62e795ab8c576f1578a6f33b06fc2ee5827365b1 (patch)
tree029f4f3e6995e55c7d4eaca29144e96eb12ce0a8 /llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
parent10194a425cc0a19bdbbf4e8b0b6c45561f6da589 (diff)
downloadbcm5719-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/DeadMachineInstructionElim.cpp')
-rw-r--r--llvm/lib/CodeGen/DeadMachineInstructionElim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
index a215a194e40..d69c995b3e0 100644
--- a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
@@ -55,7 +55,7 @@ FunctionPass *llvm::createDeadMachineInstructionElimPass() {
bool DeadMachineInstructionElim::isDead(const MachineInstr *MI) const {
// Don't delete instructions with side effects.
bool SawStore = false;
- if (!MI->isSafeToMove(TII, SawStore, 0) && !MI->isPHI())
+ if (!MI->isSafeToMove(TII, 0, SawStore) && !MI->isPHI())
return false;
// Examine each operand.
OpenPOWER on IntegriCloud