<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><br></div><div>Thanks,</div><div>Stephen</div></div>