<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 19 September 2016 at 15:58, John McCall <span dir="ltr"><<a href="mailto:rjmccall@gmail.com" target="_blank">rjmccall@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">rjmccall added a comment.<br>
<br>
Actually, that should demonstrate the difference, assuming the LLVM function looks through selects, since IRGen should generate that as a select.<br></blockquote><div><br></div><div>It doesn't look past the Value* you hand it. As well as isa<AllocaInst>, it returns true on Arguments marked nonnull, byval, inalloca or dereferenceable, global variables in addrspace 0 and not extern_weak, load instructions marked with !nonnull metadata, or a call/invoke with the nonnull parameter attribute on the return. It doesn't look at operands.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<a href="https://reviews.llvm.org/D24712" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D24712</a><br>
<br>
<br>
<br>
</blockquote></div><br></div></div>