Fix pattern sort in DAGISelEmitter.cpp
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 1 Oct 2013 09:49:01 +0000 (09:49 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Tue, 1 Oct 2013 09:49:01 +0000 (09:49 +0000)
commit737ca5f7ab631411ff9bd5b3fdd86b6cb17180fb
tree28e3296c3c49d345d975d173558f0a4d59820023
parentd59ad8a8013fd76177fb61c741562af3024d34cd
Fix pattern sort in DAGISelEmitter.cpp

The old code skipped one of the sorting criteria if either pattern had
no types.  This could lead to cycles of the form X < Y, Y < Z, Z < X.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191735 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/DAGISelEmitter.cpp