commit | 21390d79843050ae8b3226860cadc16ff51d0dcf | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Feb 16 19:15:55 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Feb 16 19:15:55 2010 +0000 |
tree | 1cd90d41aecaf92f7942786cbf96905a76084489 | |
parent | 29c6270328cf1dad1dee063990015a4c9b583e1f [diff] |
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