]> granicus.if.org Git - llvm/commit
Merging r279647:
authorHans Wennborg <hans@hanshq.net>
Wed, 24 Aug 2016 23:46:52 +0000 (23:46 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 24 Aug 2016 23:46:52 +0000 (23:46 +0000)
commitfbbabf3203c01be7bf5fe904be52aa16f2abf895
tree3fe4ea7daadc85cdc6894cb8d4ad071ef1fc5e9d
parent3aa4a350b49916c74f3e9bf7ff5a8f61b9937ab2
Merging r279647:
------------------------------------------------------------------------
r279647 | sanjoy | 2016-08-24 11:10:21 -0700 (Wed, 24 Aug 2016) | 5 lines

[SCCP] Don't delete side-effecting instructions

I'm not sure if the `!isa<CallInst>(Inst) &&
!isa<TerminatorInst>(Inst))` bit is correct either, but this fixes the
case we know is broken.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@279689 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp
test/Transforms/SCCP/calltest.ll