diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-22 02:32:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-22 02:32:12 +0000 |
commit | a0cc1654ced43274ae31bf5a0f9d23301e53bbf3 (patch) | |
tree | ff41d294ecd021638732a47bbb27d965cab52e2c /llvm/utils/TableGen/DAGISelEmitter.cpp | |
parent | 202aac174abaaab0fcd1616f4728d11111441efa (diff) | |
download | bcm5719-llvm-a0cc1654ced43274ae31bf5a0f9d23301e53bbf3.tar.gz bcm5719-llvm-a0cc1654ced43274ae31bf5a0f9d23301e53bbf3.zip |
Revert of r213521. This change introduced a non-hermetic test (depending on a
file not in the test/ area). Backing out now so that this test isn't part of
the 3.5 branch.
Original commit message: "TableGen: Allow AddedComplexity values to be negative
[...]"
llvm-svn: 213596
Diffstat (limited to 'llvm/utils/TableGen/DAGISelEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index e2e6ab19cba..82682cd5a5a 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -94,8 +94,8 @@ struct PatternSortingPredicate { // Otherwise, if the patterns might both match, sort based on complexity, // which means that we prefer to match patterns that cover more nodes in the // input over nodes that cover fewer. - int LHSSize = LHS->getPatternComplexity(CGP); - int RHSSize = RHS->getPatternComplexity(CGP); + unsigned LHSSize = LHS->getPatternComplexity(CGP); + unsigned RHSSize = RHS->getPatternComplexity(CGP); if (LHSSize > RHSSize) return true; // LHS -> bigger -> less cost if (LHSSize < RHSSize) return false; |