diff options
| author | David Green <david.green@arm.com> | 2018-02-19 16:28:24 +0000 |
|---|---|---|
| committer | David Green <david.green@arm.com> | 2018-02-19 16:28:24 +0000 |
| commit | bc35f069f4c88d355488466f9c2d7953c9202168 (patch) | |
| tree | 3e89f2e08bf58496acfddb29917db4a1364cdf5a | |
| parent | a7c457d28844cf45f344323e0a3c36951366f657 (diff) | |
| download | bcm5719-llvm-bc35f069f4c88d355488466f9c2d7953c9202168.tar.gz bcm5719-llvm-bc35f069f4c88d355488466f9c2d7953c9202168.zip | |
[Dominators] Update DominatorTree compare in case roots are different
The compare function, unusually, returns false on same, true on
different. This fixes the conditions for different roots.
Reviewed as a part of D41298.
llvm-svn: 325517
| -rw-r--r-- | llvm/include/llvm/Support/GenericDomTree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h index 84a935f1fb6..bcaac6b7686 100644 --- a/llvm/include/llvm/Support/GenericDomTree.h +++ b/llvm/include/llvm/Support/GenericDomTree.h @@ -319,10 +319,10 @@ protected: if (Parent != Other.Parent) return true; if (Roots.size() != Other.Roots.size()) - return false; + return true; if (!std::is_permutation(Roots.begin(), Roots.end(), Other.Roots.begin())) - return false; + return true; const DomTreeNodeMapType &OtherDomTreeNodes = Other.DomTreeNodes; if (DomTreeNodes.size() != OtherDomTreeNodes.size()) |

