commit | b7a48d833a3fbd3b881ff16807734046b0d01ce8 | [log] [tgz] |
---|---|---|
author | Davide Italiano <davide@freebsd.org> | Wed Aug 23 09:14:37 2017 +0000 |
committer | Davide Italiano <davide@freebsd.org> | Wed Aug 23 09:14:37 2017 +0000 |
tree | 4b2257fbd47c0cb56e67e8b6c9311793db8e6906 | |
parent | ea638e645f3e3e9f8c72553391d3867d8645b771 [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311540 91177308-0d34-0410-b5e6-96231b3b80d8