convert the new matcher to check intermediate nodes for a single
authorChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 19:15:55 +0000 (19:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 19:15:55 +0000 (19:15 +0000)
commit21390d79843050ae8b3226860cadc16ff51d0dcf
tree1cd90d41aecaf92f7942786cbf96905a76084489
parent29c6270328cf1dad1dee063990015a4c9b583e1f
convert the new matcher to check intermediate nodes for a single
use and only call IsProfitableToFold/IsLegalToFold on the load
being folded, like the old dagiselemitter does.  This
substantially simplifies the code and improves opportunities for
sharing.

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