When folding loads into ops, immediately replace uses of the op with the
authorChris Lattner <sabre@nondot.org>
Wed, 14 Dec 2005 19:25:30 +0000 (19:25 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Dec 2005 19:25:30 +0000 (19:25 +0000)
commitd4771840fd59654becb989675fbc0d0dc54c6dd4
tree4916247bd8d17348274383708f3c38641e77f7e8
parente4e49132af74a69aba92a35c38e1c87be8907ecd
When folding loads into ops, immediately replace uses of the op with the
load.  This reduces number of worklist iterations and avoid missing optimizations
depending on folding of things into sext_inreg nodes (which aren't supported by
all targets).
Tested by Regression/CodeGen/X86/extend.ll:test2

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24712 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp