TableGen: Allow AddedComplexity values to be negative
authorTom Stellard <thomas.stellard@amd.com>
Fri, 1 Aug 2014 00:32:36 +0000 (00:32 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Aug 2014 00:32:36 +0000 (00:32 +0000)
commit6655dd699f6e473aef52779ca922a2f43b5f6022
tree242684715b288bb0b9fb7605e88fc326d941f8e1
parent0e975cf6e51904d38bd0deb0ec13cc5b29481258
TableGen: Allow AddedComplexity values to be negative

This is useful for cases when stand-alone patterns are preferred to the
patterns included in the instruction definitions.  Instead of requiring
that stand-alone patterns set a larger AddedComplexity value, which
can be confusing to new developers, the allows us to reduce the
complexity of the included patterns to achieve the same result.

There will be test cases for this added to the R600 backend in a
future commit.

llvm-svn: 214466
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/DAGISelEmitter.cpp