KTEST instruction may be used instead of TEST in this case:
%int_sel3 = bitcast <8 x i1> %sel3 to i8
%res = icmp eq i8 %int_sel3, zeroinitializer br i1 %res, label %L2, label %L1
Paths
| Differential D18444
AVX-512: Generate KTEST instead of TEST ClosedPublic Authored by delena on Mar 24 2016, 5:53 AM.
Details Summary KTEST instruction may be used instead of TEST in this case: %int_sel3 = bitcast <8 x i1> %sel3 to i8 %res = icmp eq i8 %int_sel3, zeroinitializer br i1 %res, label %L2, label %L1
Diff Detail
Event Timelinedelena updated this object. igorb edited edge metadata. Comment Actionsplease check the comment LGTM
This revision is now accepted and ready to land.Mar 24 2016, 6:15 AM Closed by commit rL264298: AVX-512: Generate KTEST instead of TEST fir i1 vectors (authored by delena). · Explain WhyMar 24 2016, 8:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 51560 llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/test/CodeGen/X86/avx512-mask-op.ll
|