If we detect that the instruction we are simplifying is unreachable, arrange for
authorDuncan Sands <baldrick@free.fr>
Wed, 15 Dec 2010 11:02:22 +0000 (11:02 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 15 Dec 2010 11:02:22 +0000 (11:02 +0000)
commitf8b1a5ea9602bb65a5cf59d3d34f2851a08cdc3e
tree84b2278fe9881c470e4caacd102f786ab0952be0
parent26e097ca4bdb31000655ff9ec39fe7d9b7ea226d
If we detect that the instruction we are simplifying is unreachable, arrange for
it to be replaced by undef rather than not replaced at all, the idea being that
this may reduce the amount of work done by whoever called InstructionSimplify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp