summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.h
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
commit3b3286d4bc09950a4c492fa35531ea31431c6eb5 (patch)
tree31743b65be1fe7916fb75c9468b429a12adb685e /llvm/lib/Target/PowerPC/PPCInstrInfo.h
parentb54312d5a0ef707c91233d4f75d3d048e5b66d05 (diff)
downloadbcm5719-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.h6
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;
OpenPOWER on IntegriCloud