It's not always safe to fold movsd into xorpd, etc. Check the alignment of the load...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 8 Feb 2008 21:20:40 +0000 (21:20 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 8 Feb 2008 21:20:40 +0000 (21:20 +0000)
commit5fd79d0560570fed977788a86fa038b898564dfa
tree9f139c1da990cd358750d0edaaef90f8ad1ff505
parent0c191872ab61d21907d99695382e157f5d4e4b9f
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
16 files changed:
include/llvm/Target/TargetInstrInfo.h
lib/Target/ARM/ARMInstrInfo.cpp
lib/Target/ARM/ARMInstrInfo.h
lib/Target/Alpha/AlphaInstrInfo.cpp
lib/Target/Alpha/AlphaInstrInfo.h
lib/Target/CellSPU/SPUInstrInfo.cpp
lib/Target/CellSPU/SPUInstrInfo.h
lib/Target/Mips/MipsInstrInfo.cpp
lib/Target/Mips/MipsInstrInfo.h
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.h
lib/Target/Sparc/SparcInstrInfo.cpp
lib/Target/Sparc/SparcInstrInfo.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h
test/CodeGen/X86/2008-02-08-LoadFoldingBug.ll [new file with mode: 0644]