don't eliminate load from volatile value on paths where the load is dead.
authorChris Lattner <sabre@nondot.org>
Tue, 29 Apr 2008 17:28:22 +0000 (17:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Apr 2008 17:28:22 +0000 (17:28 +0000)
commit40700fe6836c808789d1fe5cc6bcccce86d5c62b
tree71ca04c759392cd1ad096f0cd22dc0136bbad30f
parent68608e4dd0a7b48f1d1270c34e538bf5922336ac
don't eliminate load from volatile value on paths where the load is dead.
This fixes the second half of PR2262

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