diff options
author | Nirav Dave <niravd@google.com> | 2016-09-28 16:37:50 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2016-09-28 16:37:50 +0000 |
commit | e524f5088237ca5c3f9e9c857bc42e7b501588ad (patch) | |
tree | cd58272c150f7fa4ea8722395effbcf6df108674 /llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | |
parent | 5217f8452ca20825f40f03246255dc7e08bb6536 (diff) | |
download | bcm5719-llvm-e524f5088237ca5c3f9e9c857bc42e7b501588ad.tar.gz bcm5719-llvm-e524f5088237ca5c3f9e9c857bc42e7b501588ad.zip |
Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled."
This reverts commit r282600 due to test failues with MCJIT
llvm-svn: 282604
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp index 26a136ec66b..e214164facb 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp @@ -446,6 +446,16 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM, setSelectIsExpensive(false); PredictableSelectIsExpensive = false; + // We want to find all load dependencies for long chains of stores to enable + // merging into very wide vectors. The problem is with vectors with > 4 + // elements. MergeConsecutiveStores will attempt to merge these because x8/x16 + // vectors are a legal type, even though we have to split the loads + // usually. When we can more precisely specify load legality per address + // space, we should be able to make FindBetterChain/MergeConsecutiveStores + // smarter so that they can figure out what to do in 2 iterations without all + // N > 4 stores on the same chain. + GatherAllAliasesMaxDepth = 16; + // FIXME: Need to really handle these. MaxStoresPerMemcpy = 4096; MaxStoresPerMemmove = 4096; |