Re: Do we create new insn in combine? Or can we rely on INSN_LUID checking the order of instuctions?

2014-12-11 Thread Segher Boessenkool
On Thu, Dec 11, 2014 at 03:13:50PM +0800, Bin.Cheng wrote: So I am wondering if I can rely on INSN_LUID checking orders of difference instruction. If it can be done, I can easily differentiate live range shrink and extend. Further question is, if we don't insert new insns, can I use INSN_LUID

Do we create new insn in combine? Or can we rely on INSN_LUID checking the order of instuctions?

2014-12-10 Thread Bin.Cheng
Hi, I am looking into distribute_notes, one reason why it's complicated is the live range of register noted by REG_DEAD could be both shrunk or extended. When live range shrinks, we need to search backwards to find previous reference and mark it as REG_DEAD (or delete the definition if there is