diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-01-06 06:52:41 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-06 06:52:41 +0000 |
| commit | 3ae2b79aa32524cfa590cefc7d645384a3b0aeea (patch) | |
| tree | b26196383297494773609c765dd063a24f868f28 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
| parent | 080afea2621be4c74bfa0fb9ab50e8174d238ba9 (diff) | |
| download | llvm-3ae2b79aa32524cfa590cefc7d645384a3b0aeea.zip llvm-3ae2b79aa32524cfa590cefc7d645384a3b0aeea.tar.gz llvm-3ae2b79aa32524cfa590cefc7d645384a3b0aeea.tar.bz2 | |
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/CodeGen/SelectionDAG/TargetLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 1300df8..396ebc1 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -567,6 +567,8 @@ TargetLowering::TargetLowering(const TargetMachine &tm, memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*)); memset(TargetDAGCombineArray, 0, array_lengthof(TargetDAGCombineArray)); maxStoresPerMemset = maxStoresPerMemcpy = maxStoresPerMemmove = 8; + maxStoresPerMemsetOptSize = maxStoresPerMemcpyOptSize + = maxStoresPerMemmoveOptSize = 4; benefitFromCodePlacementOpt = false; UseUnderscoreSetJmp = false; UseUnderscoreLongJmp = false; |
