summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-12-09 17:18:24 +0000
committerNirav Dave <niravd@google.com>2016-12-09 17:18:24 +0000
commitbedb5d906c097ba8117a1b3232f527ae1acffe37 (patch)
tree86d7084049259cdee6dd306836cb8c5b1c08255f /llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
parent078aea904331271c3fdc65b52d128a8acefe4e38 (diff)
downloadbcm5719-llvm-bedb5d906c097ba8117a1b3232f527ae1acffe37.tar.gz
bcm5719-llvm-bedb5d906c097ba8117a1b3232f527ae1acffe37.zip
Revert "In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled."
This reverts commit r289221 which appears to be triggering an assertion llvm-svn: 289226
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
index 707b089f4f6..8cc995c7b70 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -449,6 +449,16 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
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;
OpenPOWER on IntegriCloud