summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineSink.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
commitac1abde05b7e6956c01deb6557539bee8fea30f4 (patch)
tree6bd03a6389f47122cb5aaccd3e955279c8c32ac9 /lib/CodeGen/MachineSink.cpp
parentc5bbba1e499d46f52364e76ea95d4a37adced676 (diff)
downloadllvm-ac1abde05b7e6956c01deb6557539bee8fea30f4.tar.gz
llvm-ac1abde05b7e6956c01deb6557539bee8fea30f4.tar.bz2
llvm-ac1abde05b7e6956c01deb6557539bee8fea30f4.tar.xz
Swap parameters of isSafeToMove and isSafeToReMat for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97578 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineSink.cpp')
-rw-r--r--lib/CodeGen/MachineSink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineSink.cpp b/lib/CodeGen/MachineSink.cpp
index c391576164..9ba7d1486e 100644
--- a/lib/CodeGen/MachineSink.cpp
+++ b/lib/CodeGen/MachineSink.cpp
@@ -149,7 +149,7 @@ bool MachineSinking::ProcessBlock(MachineBasicBlock &MBB) {
/// instruction out of its current block into a successor.
bool MachineSinking::SinkInstruction(MachineInstr *MI, bool &SawStore) {
// Check if it's safe to move the instruction.
- if (!MI->isSafeToMove(TII, SawStore, AA))
+ if (!MI->isSafeToMove(TII, AA, SawStore))
return false;
// FIXME: This should include support for sinking instructions within the