<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Stephen,<div class=""><br class=""></div><div class="">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 class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 9, 2016, at 8:37 AM, Stephen Rogers via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class=""><font face="monospace, monospace" class="">%vreg218<def> = FOO %vreg217, %vreg369</font><br class=""></div><div class=""><br class=""></div><div class="">but what I need is:</div><div class=""><br class=""></div><div class=""><font face="monospace, monospace" class="">%vreg218<def> = FOO %vreg217<kill>, %vreg369<kill></font><br class=""></div><div class=""><br class=""></div><div class="">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 class=""></div><div>I would recommend to rely on the LiveInterval analysis.</div><div><br class=""></div><div>Cheers,</div><div>-Quentin</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Stephen</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>