diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-11-11 18:44:33 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2015-11-11 18:44:33 +0000 |
commit | d8fed1b79393c8f52875fce1f733887a979e4637 (patch) | |
tree | 1b6db7b3985a6d663f6da32659470035c826dbe5 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | b43962768a8e8d174b6674680a9e378a10f00924 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |