Sort the patterns before adding them to the FA so that we get the
authorChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 19:22:06 +0000 (19:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 19:22:06 +0000 (19:22 +0000)
commit99ce6e8affcfd494853aa39adfbd6792ad280329
treec7567023a06bea79b09d28bead2f0ebdfff04514
parentbb1d451246e922c49f51f0ca6a231e60b071e2a3
Sort the patterns before adding them to the FA so that we get the
least cost matches.  This gets us from 195 -> 208 passes on the ppc codegen tests.

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