<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">It is a bug in a search procedure so it does not affect the output, only the compile time. <div> <br><div><div>On Apr 22, 2013, at 7:46 AM, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: 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;">Testcase?<br><br>-eric<br><br>On Sun, Apr 21, 2013 at 12:37 AM, Nadav Rotem <<a href="mailto:nrotem@apple.com">nrotem@apple.com</a>> wrote:<br><blockquote type="cite">Author: nadav<br>Date: Sun Apr 21 02:37:56 2013<br>New Revision: 179974<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=179974&view=rev">http://llvm.org/viewvc/llvm-project?rev=179974&view=rev</a><br>Log:<br>SLPVectorizer: Fix a bug in the code that scans the tree in search of nodes with multiple users.<br>We did not terminate the switch case and we executed the search routine twice.<br><br><br>Modified:<br>   llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp<br><br>Modified: llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp?rev=179974&r1=179973&r2=179974&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp?rev=179974&r1=179973&r2=179974&view=diff</a><br>==============================================================================<br>--- llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp (original)<br>+++ llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp Sun Apr 21 02:37:56 2013<br>@@ -354,6 +354,7 @@ void BoUpSLP::getTreeUses_rec(ArrayRef<V<br><br>        getTreeUses_rec(Operands, Depth+1);<br>      }<br>+      return;<br>    }<br>    case Instruction::Store: {<br>      ValueList Operands;<br><br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</blockquote></div></blockquote></div><br></div></body></html>