Fix PR2967 by not deleting volatile load/stores that occur before unreachable.
authorChris Lattner <sabre@nondot.org>
Wed, 29 Oct 2008 17:46:26 +0000 (17:46 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Oct 2008 17:46:26 +0000 (17:46 +0000)
commitf8131c99de2ac66be4307ae24f2db44d12bc9b3f
tree4c917a1c21ef677a38c3d0e6b4859ecfea543c1f
parent90e619afbef9886c65650d0464e3cc87deb8c298
Fix PR2967 by not deleting volatile load/stores that occur before unreachable.
I don't really see this as being needed, but there is little harm from doing
it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58385 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/trapping-load-unreachable.ll [new file with mode: 0644]