summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-01-06 06:52:41 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-01-06 06:52:41 +0000
commit3ae2b79aa32524cfa590cefc7d645384a3b0aeea (patch)
treeb26196383297494773609c765dd063a24f868f28 /llvm/lib/Target/ARM
parent080afea2621be4c74bfa0fb9ab50e8174d238ba9 (diff)
downloadbcm5719-llvm-3ae2b79aa32524cfa590cefc7d645384a3b0aeea.tar.gz
bcm5719-llvm-3ae2b79aa32524cfa590cefc7d645384a3b0aeea.zip
Re-implement r122936 with proper target hooks. Now getMaxStoresPerMemcpy
etc. takes an option OptSize. If OptSize is true, it would return the inline limit for functions with attribute OptSize. llvm-svn: 122952
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 22b3b431deb..f50eac523f4 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -687,7 +687,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
else
setSchedulingPreference(Sched::Hybrid);
- maxStoresPerMemcpy = 1; //// temporary - rewrite interface to use type
+ //// temporary - rewrite interface to use type
+ maxStoresPerMemcpy = maxStoresPerMemcpyOptSize = 1;
// On ARM arguments smaller than 4 bytes are extended, so all arguments
// are at least 4 bytes aligned.
OpenPOWER on IntegriCloud