AW: setmemsi, movmemsi and post_inc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Von: Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>
> Gesendet: Freitag, 26. März 2021 23:10
> 
> Hi!
> 
> On Thu, Mar 25, 2021 at 03:21:29PM +0100, Stefan Franke wrote:
> > (insn 8 7 9 2 (set (reg:SI 41)
> >         (reg/f:SI 40))
> >      (expr_list:REG_INC (reg:SI 41)
> >         (nil)))
> 
> REG_INC notes are only valid on insns containing a post_inc expression.
> This usually is inside a mem, but it doesn't have to be.  So this would be
> 
>   (set (reg:SI 41)
>        (post_inc:SI (reg:SI 40)))
> 

Well I'am (ab)using it as a marker: this register is used elsewhere in
post_inc insns. This avoids by simply testing the presence of this note the
folding/combing/etc.pp in cse, gcse and cprop.

Would it be better to add a new note flavour? REG_USED_IN_INC?

Stefan





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux