diff options
author | Farhana Aleen <farhana.aleen@gmail.com> | 2018-07-02 17:55:31 +0000 |
---|---|---|
committer | Farhana Aleen <farhana.aleen@gmail.com> | 2018-07-02 17:55:31 +0000 |
commit | 3b416db19ba91207649430cfa4604ffd331bf86c (patch) | |
tree | f59b245e92a5ed1ddabd0ed097a1d385f76756af /libcxx/test/std/strings/basic.string/string.cons/implicit_deduction_guides.pass.cpp | |
parent | 40a9f2251b75012d1d9ce8f86a834ffef9edfb0f (diff) | |
download | bcm5719-llvm-3b416db19ba91207649430cfa4604ffd331bf86c.tar.gz bcm5719-llvm-3b416db19ba91207649430cfa4604ffd331bf86c.zip |
[SLP] Recognize min/max pattern using instructions producing same values.
Summary: It is common to have the following min/max pattern during the intermediate stages of SLP since we only optimize at the end. This patch tries to catch such patterns and allow more vectorization.
%1 = extractelement <2 x i32> %a, i32 0
%2 = extractelement <2 x i32> %a, i32 1
%cond = icmp sgt i32 %1, %2
%3 = extractelement <2 x i32> %a, i32 0
%4 = extractelement <2 x i32> %a, i32 1
%select = select i1 %cond, i32 %3, i32 %4
Author: FarhanaAleen
Reviewed By: ABataev, RKSimon, spatel
Differential Revision: https://reviews.llvm.org/D47608
llvm-svn: 336130
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.cons/implicit_deduction_guides.pass.cpp')
0 files changed, 0 insertions, 0 deletions