<div dir="ltr">Might want to follow up with wherever this was committed (or wherever the store became dead) to check that there wasn't an intended use of this value that just went missing/was never finished... </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 20, 2015 at 4:51 AM, Tilmann Scheller via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: tilmann<br>
Date: Fri Nov 20 06:51:58 2015<br>
New Revision: 253661<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=253661&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=253661&view=rev</a><br>
Log:<br>
[FunctionAttrs] Remove redundant assignment.<br>
<br>
Identified by the Clang static analyzer.<br>
<br>
Modified:<br>
    llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp<br>
<br>
Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=253661&r1=253660&r2=253661&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=253661&r1=253660&r2=253661&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)<br>
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Fri Nov 20 06:51:58 2015<br>
@@ -486,8 +486,6 @@ determinePointerReadAttrs(Argument *A,<br>
         return Attribute::None;<br>
       }<br>
<br>
-      Captures &= !CS.doesNotCapture(UseIndex);<br>
-<br>
       // Since the optimizer (by design) cannot see the data flow corresponding<br>
       // to a operand bundle use, these cannot participate in the optimistic SCC<br>
       // analysis.  Instead, we model the operand bundle uses as arguments in<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">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><br></div>