Fix an issue where we were reusing materializations of constants in blocks not domina...
authorOwen Anderson <resistor@mac.com>
Wed, 3 Sep 2008 17:37:03 +0000 (17:37 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 3 Sep 2008 17:37:03 +0000 (17:37 +0000)
commit99aaf108cdf4ac5b972757abbf4e0a3d547804b1
tree046d8a7dec9141fd8f4712fb920de65820b5a893
parent6bd8aa8399baa16f171219368543c1a4fa88663e
Fix an issue where we were reusing materializations of constants in blocks not dominated by the materialization.  This is
the simple fix, materializing the constant before every use.  It might be better to either track domination of uses or
to materialize all constants and the beginning of the function and let remat sort when to do materialization at uses.

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