summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-04-01 18:19:11 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-04-01 18:19:11 +0000
commit4c014c892a36ac9a8423573b132408009d0738ae (patch)
tree0166b9ce9389e54216c494b80492b944a3ea890f /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent1a55ef0427f242827f37e80c5c48baba756ba46d (diff)
downloadbcm5719-llvm-4c014c892a36ac9a8423573b132408009d0738ae.tar.gz
bcm5719-llvm-4c014c892a36ac9a8423573b132408009d0738ae.zip
- Avoid using floating point stores to implement memset unless the value is zero.
- Do not try to infer GV alignment unless its type is sized. It's not possible to infer alignment if it has opaque type. llvm-svn: 100118
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index d00fbff77a1..d043ec626a2 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -5541,6 +5541,7 @@ PPCTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
EVT PPCTargetLowering::getOptimalMemOpType(uint64_t Size,
unsigned DstAlign, unsigned SrcAlign,
+ bool SafeToUseFP,
SelectionDAG &DAG) const {
if (this->PPCSubTarget.isPPC64()) {
return MVT::i64;
OpenPOWER on IntegriCloud