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/CodeGenDAGPatterns.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/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index d195ba823b5..2602bbcf6f6 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -771,7 +771,7 @@ static unsigned getPatternSize(const TreePatternNode *P, /// Compute the complexity metric for the input pattern. This roughly /// corresponds to the number of nodes that are covered. -int PatternToMatch:: +unsigned PatternToMatch:: getPatternComplexity(const CodeGenDAGPatterns &CGP) const { return getPatternSize(getSrcPattern(), CGP) + getAddedComplexity(); } |