<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 23, 2015 at 10:17 PM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Craig Topper <<a href="mailto:craig.topper@gmail.com">craig.topper@gmail.com</a>> writes:<br>
> Author: ctopper<br>
> Date: Sat May 23 03:20:33 2015<br>
> New Revision: 238094<br>
><br>
> URL: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject-3Frev-3D238094-26view-3Drev&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=q9Feat8iBO6GNu9Wo4OFVLnniC0RcZQvbAathPwsi70&s=d9fE37f3KGF9zzREqLG9X0NVWib3W357mmqnAVMPNV4&e=" target="_blank">http://llvm.org/viewvc/llvm-project?rev=238094&view=rev</a><br>
> Log:<br>
> Fix an unused variable warning in release builds.<br>
><br>
> Modified:<br>
> llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp<br>
><br>
> Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp<br>
> URL:<br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_viewvc_llvm-2Dproject_llvm_trunk_lib_Transforms_Scalar_LoopStrengthReduce.cpp-3Frev-3D238094-26r1-3D238093-26r2-3D238094-26view-3Ddiff&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=q9Feat8iBO6GNu9Wo4OFVLnniC0RcZQvbAathPwsi70&s=ER4J0b1YTAu44eOHBl_84jnxJJ_BQs-K4w-68dFVNt0&e=" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=238094&r1=238093&r2=238094&view=diff</a><br>
> ==============================================================================<br>
> --- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)<br>
> +++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Sat May 23 03:20:33 2015<br>
> @@ -4847,6 +4847,7 @@ LSRInstance::LSRInstance(Loop *L, Pass *<br>
> unsigned NumUsers = 0;<br>
> for (const IVStrideUse &U : IU) {<br>
> if (++NumUsers > MaxIVUsers) {<br>
> + (void)U;<br>
<br>
This warning seems like a bit of a false positive - we're iterating for<br>
effect here. Is this clang or other compilers warning? Should we file a<br>
bug that it isn't useful to warn on this?<br></blockquote><div><br></div><div>Here's the buildbot failure that I got. <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lab.llvm.org-3A8011_builders_lld-2Dx86-5F64-2Ddarwin13_builds_10986&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=q9Feat8iBO6GNu9Wo4OFVLnniC0RcZQvbAathPwsi70&s=iXMsd5A0mXlA2lDcE6bwEP8dZ3drwL3T62OJLfq9g-w&e=">http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/10986</a></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
> DEBUG(dbgs() << "LSR skipping loop, too many IV Users in " << U << "\n");<br>
> return;<br>
> }<br>
><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" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">~Craig</div>
</div></div>