When matching patterns that have a complex pattern as their root, make
authorChris Lattner <sabre@nondot.org>
Mon, 22 Feb 2010 22:18:05 +0000 (22:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Feb 2010 22:18:05 +0000 (22:18 +0000)
commit1f2ed5fe7ed9327f79dc7128fc109e4d6c864907
treea70ef1ab55b6ec607c2f7a679aff548cfe3decdb
parent3df577b71beb6da2d9ac46233871eb081bacbf6a
When matching patterns that have a complex pattern as their root, make
sure to only run the complex pattern on nodes where the target opts in.
This patch only handles targets with one opcode specified so far, but
fixes 16 failures, only 34 left.

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