<div dir="ltr"><div>IR is here</div><div><br></div><a href="http://pastebin.com/ESbCW6sV">http://pastebin.com/ESbCW6sV</a><br><div><br></div><div>It seems that even though there are both sext and zext, indvars decides the IV is signed and refuses to remove any zexts.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div>
<br><div class="gmail_quote">On Tue, Jun 28, 2016 at 11:27 PM, Sanjoy Das <span dir="ltr"><<a href="mailto:sanjoy@playingwithpointers.com" target="_blank">sanjoy@playingwithpointers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jun 28, 2016 at 10:55 PM, Craig Topper <<a href="mailto:craig.topper@gmail.com">craig.topper@gmail.com</a>> wrote:<br>
> Early on in the pipeline my change caused a zext to feed the getelementptrs<br>
> instead of a sext. Later in Induction Variable Simplification a trunc was<br>
> added in front of the zext. Where as before the sext was completely removed.<br>
<br>
</span>Do you have the IR before indvars was run?<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Sanjoy<br>
</font></span></blockquote></div><br></div>