Don't skip over instructions other than loads that might read memory
authorEli Friedman <eli.friedman@gmail.com>
Fri, 13 Jun 2008 22:02:12 +0000 (22:02 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 13 Jun 2008 22:02:12 +0000 (22:02 +0000)
commit6903a24f32e11d10ad7232b2c16c8d07f27a31c7
tree25392f38f7effd961eacdff4946754d73a7cbac4
parente562b1725ee068ff525082d1e9ba885c8928c72e
Don't skip over instructions other than loads that might read memory
when trying to sink stores.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52259 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2008-06-13-ReadOnlyCallStore.ll [new file with mode: 0644]