diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2020-06-25 10:42:16 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2020-06-25 10:44:10 +0700 |
commit | 1eeb7147878edb7c0c0fbf54bc3dffd43db271b8 (patch) | |
tree | 252803bb2c8aec5598ee9f71bfc03e537b1f93d5 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a5041987eddc21d37345d055cb7a51b3eb5ee698 (diff) | |
download | llvm-1eeb7147878edb7c0c0fbf54bc3dffd43db271b8.zip llvm-1eeb7147878edb7c0c0fbf54bc3dffd43db271b8.tar.gz llvm-1eeb7147878edb7c0c0fbf54bc3dffd43db271b8.tar.bz2 |
[InstCombine] Combine select & Phi by same condition
This patch transforms
```
p = phi [x, y]
s = select cond, z, p
```
with
```
s = phi[x, z]
```
if we can prove that the Phi node takes values basing on select's condition.
Differential Revision: https://reviews.llvm.org/D82072
Reviewed By: nikic
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions