summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-11-11 18:44:33 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-11-11 18:44:33 +0000
commitd8fed1b79393c8f52875fce1f733887a979e4637 (patch)
tree1b6db7b3985a6d663f6da32659470035c826dbe5 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parentb43962768a8e8d174b6674680a9e378a10f00924 (diff)
downloadbcm5719-llvm-d8fed1b79393c8f52875fce1f733887a979e4637.tar.gz
bcm5719-llvm-d8fed1b79393c8f52875fce1f733887a979e4637.zip
Add target preference for GatherAllAliases max depth
llvm-svn: 252775
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 2dd71bd4e7f..a1edb29e486 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -14455,7 +14455,7 @@ void DAGCombiner::GatherAllAliases(SDNode *N, SDValue OriginalChain,
// FIXME: The depth check could be made to return the last non-aliasing
// chain we found before we hit a tokenfactor rather than the original
// chain.
- if (Depth > 6) {
+ if (Depth > TLI.getGatherAllAliasesMaxDepth()) {
Aliases.clear();
Aliases.push_back(OriginalChain);
return;
OpenPOWER on IntegriCloud