<div dir="ltr">Test case?</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 1, 2018 at 7:27 AM Hiroshi Inoue 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: inouehrs<br>
Date: Fri Jun  1 07:23:15 2018<br>
New Revision: 333754<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=333754&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=333754&view=rev</a><br>
Log:<br>
[NFC] Zero initialize local variables<br>
<br>
This patch makes local variables zero initialized to avoid broken values in debug output.<br>
<br>
<br>
Modified:<br>
    llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp<br>
<br>
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=333754&r1=333753&r2=333754&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp?rev=333754&r1=333753&r2=333754&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp (original)<br>
+++ llvm/trunk/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Fri Jun  1 07:23:15 2018<br>
@@ -2253,7 +2253,7 @@ public:<br>
     // set of bit groups, and then mask in the zeros at the end. With early<br>
     // masking, we only insert the non-zero parts of the result at every step.<br>
<br>
-    unsigned InstCnt, InstCntLateMask;<br>
+    unsigned InstCnt = 0, InstCntLateMask = 0;<br>
     LLVM_DEBUG(dbgs() << "\tEarly masking:\n");<br>
     SDNode *RN = Select(N, false, &InstCnt);<br>
     LLVM_DEBUG(dbgs() << "\t\tisel would use " << InstCnt << " instructions\n");<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>