Emit a redundant check for immediates at root context, e.g. (imm 0).
authorChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 07:27:07 +0000 (07:27 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2010 07:27:07 +0000 (07:27 +0000)
commitbd8965a7d9e0ed34bc3a357c2f710de5fbdda36f
treef18a694939dc22a774eaf28aada1b828c83de5f5
parentfa342faef9d1c89de356ed83a6c6529ed3e87610
Emit a redundant check for immediates at root context, e.g. (imm 0).
This allows formation of OpcodeSwitch for top level patterns, in
particular on X86.  This saves about 1K of data space in the x86
table and makes the dispatch much more efficient.

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