Fixed a bug where we did not handle constant
expressions correctly.  These produced a result
variable with an initializer but no store
instruction, and the store instruction was as
a result never rewritten to become a store to a
persistent variable.

Now if the result variable has an initializer
but is never used, we generate a (redundant)
store instruction for it, which is then later
rewritten into a (useful) store to the persistent
result variable.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113300 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed