aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-12-15 11:02:22 +0000
committerDuncan Sands <baldrick@free.fr>2010-12-15 11:02:22 +0000
commitf8b1a5ea9602bb65a5cf59d3d34f2851a08cdc3e (patch)
tree84b2278fe9881c470e4caacd102f786ab0952be0 /lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent26e097ca4bdb31000655ff9ec39fe7d9b7ea226d (diff)
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
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions