teach tblgen to allow patterns like (add (i32 (bitconvert (i32 GPR))), 4),
authorChris Lattner <sabre@nondot.org>
Sun, 28 Mar 2010 08:38:32 +0000 (08:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 28 Mar 2010 08:38:32 +0000 (08:38 +0000)
commit7a0eb91b4c238542a11ca805af15933cc8290786
tree2f4eafb95f896455bc6c85965d72f536adcaa3c1
parente82f336d8f6721a07821df82a3b999a907f9b477
teach tblgen to allow patterns like (add (i32 (bitconvert (i32 GPR))), 4),
transforming it into (add (i32 GPR), 4).  This allows us to write type
generic multi patterns and have tblgen automatically drop the bitconvert
in the case when the types align.  This allows us to fold an extra load
in the changed testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99756 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
utils/TableGen/CodeGenDAGPatterns.cpp