Fix PR2590 by making PatternSortingPredicate actually be
authorChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 22:09:11 +0000 (22:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 22:09:11 +0000 (22:09 +0000)
commit117ccb7e518f05e4bf3df058fc402262f897ff0b
tree66d0966b994e263aa7dbbee8c39858e8883b366e
parentf94bc547575236d06a45bc17c576f3e19e463803
Fix PR2590 by making PatternSortingPredicate actually be
ordered correctly.  Previously it would get in trouble when
two patterns were too similar and give them nondet ordering.
We force this by using the record ID order as a fallback.

The testsuite diff is due to alpha patterns being ordered
slightly differently, the change is a semantic noop afaict:

<  lda $0,-100($16)
---
>  subq $16,100,$0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97509 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/Alpha/add.ll
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/CodeGenDAGPatterns.h
utils/TableGen/DAGISelEmitter.cpp
utils/TableGen/Record.h