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)
commit4950ae59608e806f305d1fababf78a984b52db69
treeb1d7999fae7ed16d6aa3793bab2b7774dc3a7b9b
parent8db585afaac3b5e1a4222d33b9abadac5c96f5f6
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213521 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/NegativeAddedComplexity.ll [new file with mode: 0644]
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/CodeGenDAGPatterns.h
utils/TableGen/DAGISelEmitter.cpp