diff options
author | David Bolvansky <david.bolvansky@gmail.com> | 2018-08-23 15:22:15 +0000 |
---|---|---|
committer | David Bolvansky <david.bolvansky@gmail.com> | 2018-08-23 15:22:15 +0000 |
commit | 43b0e2584706c5c0efc86ea099ba8b54bb64743f (patch) | |
tree | 65f01c77cd68ca4fff904f626ee1fb22c94e08fe /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | 3ecabd709f7d7031df9368d27d0b300460d51cf1 (diff) | |
download | bcm5719-llvm-43b0e2584706c5c0efc86ea099ba8b54bb64743f.tar.gz bcm5719-llvm-43b0e2584706c5c0efc86ea099ba8b54bb64743f.zip |
[InstCombine] Fold Select with binary op - FP opcodes
Summary:
Follow up for https://reviews.llvm.org/rL339520 and https://reviews.llvm.org/rL338300
Alive:
```
%A = fcmp oeq float %x, 0.0
%B = fadd nsz float %x, %z
%C = select i1 %A, float %B, float %y
=>
%C = select i1 %A, float %z, float %y
----------
%A = fcmp oeq float %x, 0.0
%B = fadd nsz float %x, %z
%C = select %A, float %B, float %y
=>
%C = select %A, float %z, float %y
Done: 1
Optimization is correct
%A = fcmp une float %x, -0.0
%B = fadd nsz float %x, %z
%C = select i1 %A, float %y, float %B
=>
%C = select i1 %A, float %y, float %z
----------
%A = fcmp une float %x, -0.0
%B = fadd nsz float %x, %z
%C = select %A, float %y, float %B
=>
%C = select %A, float %y, float %z
Done: 1
Optimization is correct
```
Reviewers: spatel, lebedev.ri
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D50714
llvm-svn: 340538
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions