TableGen: Allow AddedComplexity values to be negative
authorTom Stellard <thomas.stellard@amd.com>
Mon, 21 Jul 2014 13:28:54 +0000 (13:28 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 21 Jul 2014 13:28:54 +0000 (13:28 +0000)
commitedf1570d4e300bb51f852da199a6fa8df141ad66
tree467f17db0ee0530e73e313fd200e678ebc45b542
parent6f3382cd4450a658cb18ff60d84e2ffa9a0ef866
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.

llvm-svn: 213521
llvm/test/TableGen/NegativeAddedComplexity.ll [new file with mode: 0644]
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/DAGISelEmitter.cpp