diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-08 21:20:40 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-08 21:20:40 +0000 |
commit | 3b3286d4bc09950a4c492fa35531ea31431c6eb5 (patch) | |
tree | 31743b65be1fe7916fb75c9468b429a12adb685e /llvm/lib/Target/PowerPC/PPCInstrInfo.h | |
parent | b54312d5a0ef707c91233d4f75d3d048e5b66d05 (diff) | |
download | bcm5719-llvm-3b3286d4bc09950a4c492fa35531ea31431c6eb5.tar.gz bcm5719-llvm-3b3286d4bc09950a4c492fa35531ea31431c6eb5.zip |
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.
llvm-svn: 46893
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h index 02d8bba369a..9f289e4ff83 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h @@ -131,11 +131,13 @@ public: /// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into /// copy instructions, turning them into load/store instructions. - virtual MachineInstr* foldMemoryOperand(MachineInstr* MI, + virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, + MachineInstr* MI, SmallVectorImpl<unsigned> &Ops, int FrameIndex) const; - virtual MachineInstr* foldMemoryOperand(MachineInstr* MI, + virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, + MachineInstr* MI, SmallVectorImpl<unsigned> &Ops, MachineInstr* LoadMI) const { return 0; |