<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">LGTM!<div><br><div><div><div>On Dec 4, 2013, at 6:06 AM, Cameron McInally <<a href="mailto:cameron.mcinally@nyu.edu">cameron.mcinally@nyu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hey Aleksey,<br><br>On Tue, Dec 3, 2013 at 3:15 PM, Bader, Aleksey A<br><<a href="mailto:aleksey.a.bader@intel.com">aleksey.a.bader@intel.com</a>> wrote:<br><blockquote type="cite">Hi LLVM developers,<br><br><br><br>I need your help with reviewing and committing the patch.<br><br><br><br>Build of that program:<br><br>define <16 x i32> @test() {<br><br>entry:<br><br> %0 = icmp slt <16 x i32> undef, undef<br><br> %1 = select <16 x i1> %0, <16 x i32> undef, <16 x i32> zeroinitializer<br><br> ret <16 x i32> %1<br><br>}<br><br>Fails on KNL because of optimization in PerformSELECTCombine, which replaces<br>(x < y) ? a : 0 => (x < y) & a.<br><br>It seems to be profitable only if we keep comparison result in the same<br>register group as ‘a’ (i.e. for vector architectures without dedicated mask<br>registers).<br><br>There is no need in this optimization on KNL because vselect can be<br>implemented as masked move (single instruction).<br></blockquote><br>This LGTM. I was just looking at the same issue, so thanks for this. :)<br><br>-Cameron<br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a></div></blockquote></div><br></div></div></body></html>