Emit redundant opcode checks for andimm and orimm tests at root
authorChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 02:15:34 +0000 (02:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 02:15:34 +0000 (02:15 +0000)
commite9eeda878beb8d36507a69a2be2fe08fcc968fef
treea592c260e96508c1e738d1c7887e3a03e5e34010
parent4d0c931ba7758a98864dc7e968a10df7fed7ab70
Emit redundant opcode checks for andimm and orimm tests at root
so that we get grouping at the top level.

Add an optimization to reorder type check & record nodes
after opcode checks.  We prefer to expose tree shape
matching which improves grouping and will enhance the next
optimization.

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