<div dir="ltr">No test case?</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 10, 2016 at 11:52 PM Craig Topper via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: ctopper<br class="gmail_msg">
Date: Sun Dec 11 01:42:06 2016<br class="gmail_msg">
New Revision: 289372<br class="gmail_msg">
<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=289372&view=rev" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project?rev=289372&view=rev</a><br class="gmail_msg">
Log:<br class="gmail_msg">
[X86][InstCombine] Teach InstCombineCalls to simplify demanded elements for scalar FMA intrinsics.<br class="gmail_msg">
<br class="gmail_msg">
These intrinsics don't read the upper bits of their second and third inputs so we can try to simplify them.<br class="gmail_msg">
<br class="gmail_msg">
Modified:<br class="gmail_msg">
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp<br class="gmail_msg">
<br class="gmail_msg">
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=289372&r1=289371&r2=289372&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=289372&r1=289371&r2=289372&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)<br class="gmail_msg">
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Sun Dec 11 01:42:06 2016<br class="gmail_msg">
@@ -1777,6 +1777,14 @@ Instruction *InstCombiner::visitCallInst<br class="gmail_msg">
     break;<br class="gmail_msg">
   }<br class="gmail_msg">
<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfmadd_ss:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfmsub_ss:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfnmadd_ss:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfnmsub_ss:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfmadd_sd:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfmsub_sd:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfnmadd_sd:<br class="gmail_msg">
+  case Intrinsic::x86_fma_vfnmsub_sd:<br class="gmail_msg">
   case Intrinsic::x86_avx512_mask_add_ss_round:<br class="gmail_msg">
   case Intrinsic::x86_avx512_mask_div_ss_round:<br class="gmail_msg">
   case Intrinsic::x86_avx512_mask_mul_ss_round:<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
llvm-commits mailing list<br class="gmail_msg">
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail_msg" target="_blank">llvm-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="gmail_msg">
</blockquote></div>