summaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-08 21:20:40 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-08 21:20:40 +0000
commit5fd79d0560570fed977788a86fa038b898564dfa (patch)
tree9f139c1da990cd358750d0edaaef90f8ad1ff505 /lib/Target/Alpha/AlphaInstrInfo.cpp
parent0c191872ab61d21907d99695382e157f5d4e4b9f (diff)
downloadllvm-5fd79d0560570fed977788a86fa038b898564dfa.tar.gz
llvm-5fd79d0560570fed977788a86fa038b898564dfa.tar.bz2
llvm-5fd79d0560570fed977788a86fa038b898564dfa.tar.xz
It's not always safe to fold movsd into xorpd, etc. Check the alignment of the load address first to make sure it's 16 byte aligned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaInstrInfo.cpp')
-rw-r--r--lib/Target/Alpha/AlphaInstrInfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaInstrInfo.cpp b/lib/Target/Alpha/AlphaInstrInfo.cpp
index 53d7104870..48e23f9d38 100644
--- a/lib/Target/Alpha/AlphaInstrInfo.cpp
+++ b/lib/Target/Alpha/AlphaInstrInfo.cpp
@@ -250,9 +250,10 @@ void AlphaInstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg,
NewMIs.push_back(MIB);
}
-MachineInstr *AlphaInstrInfo::foldMemoryOperand(MachineInstr *MI,
- SmallVectorImpl<unsigned> &Ops,
- int FrameIndex) const {
+MachineInstr *AlphaInstrInfo::foldMemoryOperand(MachineFunction &MF,
+ MachineInstr *MI,
+ SmallVectorImpl<unsigned> &Ops,
+ int FrameIndex) const {
if (Ops.size() != 1) return NULL;
// Make sure this is a reg-reg copy.