<div dir="ltr"><span style="font-size:12.8px">Hi Quentin,</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">That's unfortunate to hear. I'll take a look into using the LiveInterval analysis for this.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks for the advice,</span></div><div><span style="font-size:12.8px">Stephen</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 May 2016 at 17:05, Quentin Colombet <span dir="ltr"><<a href="mailto:qcolombet@apple.com" target="_blank">qcolombet@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Stephen,<div><br></div><div>The kill flags are conservatively correct and not mandatory; if they are set, they are correct, if they are not, you cannot say anything.</div><div><br><div><span class=""><blockquote type="cite"><div>On May 9, 2016, at 8:37 AM, Stephen Rogers via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr">Hi all,<div><br></div><div>I'm writing a MachineFunction pass that relies on the kill flag to be appropriately set on operands of Machine Instructions, but it isn't. My pass runs before register allocation. What I'm seeing when I print an instruction is something like:</div><div><br></div><div><font face="monospace, monospace">%vreg218<def> = FOO %vreg217, %vreg369</font><br></div><div><br></div><div>but what I need is:</div><div><br></div><div><font face="monospace, monospace">%vreg218<def> = FOO %vreg217<kill>, %vreg369<kill></font><br></div><div><br></div><div>On this same instruction, the kill flag is being set on vreg217 and vreg369 in preceding and succeeding passes, but not in my pass. Is there some analysis pass that I need to add as required in my pass's "getAnalysisUsage" to get this flag to be set?</div></div></div></blockquote><div><br></div></span><div>I would recommend to rely on the LiveInterval analysis.</div><div><br></div><div>Cheers,</div><div>-Quentin</div><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Thanks,</div><div>Stephen</div></div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>