commit | 406cfb625309b023ed9ff2e425dfb57a1edfb7a4 | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Wed Aug 03 17:12:47 2016 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Wed Aug 03 17:12:47 2016 +0000 |
tree | 1db3c7c09cd316bbeeaad1f1a56d1d3dc821b300 | |
parent | d619aa8878c3dafcc0d29a46517f63ff3209fdd4 [diff] |
[CloneFunction] Don't remove side effecting calls We were able to figure out that the result of a call is some constant. While propagating that fact, we added the constant to the value map. This is problematic because it results in us losing the call site when processing the value map. This fixes PR28802. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277611 91177308-0d34-0410-b5e6-96231b3b80d8