summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-diff/DifferenceEngine.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-08-23 09:14:37 +0000
committerDavide Italiano <davide@freebsd.org>2017-08-23 09:14:37 +0000
commitc78885818a3c214492ad6890ca7feeb8292386a0 (patch)
treec93d9edfde237b122629ced1c97ed338c4fc9e1b /llvm/tools/llvm-diff/DifferenceEngine.cpp
parentcc555bd0acc7b8d2a0a8afb78a126639f93a5524 (diff)
downloadbcm5719-llvm-c78885818a3c214492ad6890ca7feeb8292386a0.tar.gz
bcm5719-llvm-c78885818a3c214492ad6890ca7feeb8292386a0.zip
[InstCombine] Fold branches with irrelevant conditions to a constant.
InstCombine folds instructions with irrelevant conditions to undef. This, as Nuno confirmed is a bug. (see https://bugs.llvm.org/show_bug.cgi?id=33409#c1 ) Given the original motivation for the change is that of removing an USE, we now fold to false instead (which reaches the same goal without undesired side effects). Fixes PR33409. Differential Revision: https://reviews.llvm.org/D36975 llvm-svn: 311540
Diffstat (limited to 'llvm/tools/llvm-diff/DifferenceEngine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud