<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
+        if (!AddendValNo) {<br>
+          // This can be null if the register is undef.<br>
+          continue;<br>
+        }<br>
+<br></blockquote><div><br></div><div>Nit: No need for braces here. :)</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
         MachineInstr *AddendMI = LIS->getInstructionFromIndex(AddendValNo->def);<br>
<br>
         // The addend and this instruction must be in the same block.<br>
<br>
Added: llvm/trunk/test/CodeGen/PowerPC/vsx-fma-mutate-undef.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vsx-fma-mutate-undef.ll?rev=245741&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vsx-fma-mutate-undef.ll?rev=245741&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/test/CodeGen/PowerPC/vsx-fma-mutate-undef.ll (added)<br>
+++ llvm/trunk/test/CodeGen/PowerPC/vsx-fma-mutate-undef.ll Fri Aug 21 16:34:24 2015<br>
@@ -0,0 +1,33 @@<br>
+; RUN: llc < %s | FileCheck %s<br>
+target datalayout = "e-m:e-i64:64-n32:64"<br>
+target triple = "powerpc64le-unknown-linux-gnu"<br>
+<br>
+; Function Attrs: nounwind<br>
+define void @acosh_float8() #0 {<br>
+entry:<br>
+  br i1 undef, label %if.then, label %if.end<br>
+<br>
+if.then:                                          ; preds = %entry<br>
+  %0 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> undef, <4 x float> <float 0x3FE62E4200000000, float 0x3FE62E4200000000, float 0x3FE62E4200000000, float 0x3FE62E4200000000>, <4 x float> undef) #0<br>
+  %astype.i.i.74.i = bitcast <4 x float> %0 to <4 x i32><br>
+  %and.i.i.76.i = and <4 x i32> %astype.i.i.74.i, undef<br>
+  %or.i.i.79.i = or <4 x i32> %and.i.i.76.i, undef<br>
+  %astype5.i.i.80.i = bitcast <4 x i32> %or.i.i.79.i to <4 x float><br>
+  %1 = shufflevector <4 x float> %astype5.i.i.80.i, <4 x float> undef, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef><br>
+  %2 = shufflevector <8 x float> undef, <8 x float> %1, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 10, i32 11><br>
+  store <8 x float> %2, <8 x float>* undef, align 32<br>
+  br label %if.end<br>
+<br>
+; CHECK-LABEL: @acosh_float8<br>
+; CHECK: xvmaddasp<br>
+<br>
+if.end:                                           ; preds = %if.then, %entry<br>
+  ret void<br>
+}<br>
+<br>
+; Function Attrs: nounwind readnone<br>
+declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #1<br>
+<br>
+attributes #0 = { nounwind }<br>
+attributes #1 = { nounwind readnone }<br>
+<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div>