summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit019a41880836520dec1dd83c909c48a8f42405c8 (patch)
treec091ca5f2e074a4386cd30d2b8aff056d75711be /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent3d1803495e6c2fcca78ba904afd1110dbf837743 (diff)
downloadbcm5719-llvm-019a41880836520dec1dd83c909c48a8f42405c8.tar.gz
bcm5719-llvm-019a41880836520dec1dd83c909c48a8f42405c8.zip
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. llvm-svn: 121860
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud