PR9420; an instruction before an unreachable is guaranteed not to have any
authorEli Friedman <eli.friedman@gmail.com>
Wed, 9 Mar 2011 00:48:33 +0000 (00:48 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 9 Mar 2011 00:48:33 +0000 (00:48 +0000)
commit2adc5b6a17268834b08fda444b1a84550e8c5ae8
treeed1fb5ac8ad6f42756bf8e23b079f4eb890d01f9
parente11128dd9d85b595b3fa03d0d8a52f0ae62cc11c
PR9420; an instruction before an unreachable is guaranteed not to have any
reachable uses, but there still might be uses in dead blocks.  Use the
standard solution of replacing all the uses with undef.  This is
a rare case because it's very sensitive to phase ordering in SimplifyCFG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127299 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/2011-03-08-UnreachableUse.ll [new file with mode: 0644]