Adam Nemet writes:
> Richard Sandiford writes:
>> If we have an instruction:
>>
>> A: (set (reg Z) (plus (reg X) (const_int 0xdeadbeef)))
>>
>> we will need to use something like:
>>
>>(set (reg Y) (const_int 0xdead))
>>(set (reg Y) (ior (reg Y) (const_int 0xbeef)))
>>
Thank you very much. This was very informative.
Richard Sandiford writes:
> If we have an instruction:
>
> A: (set (reg Z) (plus (reg X) (const_int 0xdeadbeef)))
>
> we will need to use something like:
>
>(set (reg Y) (const_int 0xdead))
>(set (reg Y) (ior (reg Y) (cons
Adam Nemet writes:
> Richard Sandiford writes:
>> Adam Nemet writes:
>> > * Synthesizing multi-insns constants from const anchors make sense
>> > regardless
>> > whether the constant is used as an address so I am adjusting the cost
>> > system
>> > to make those stick independent of the context
Richard Sandiford writes:
> Adam Nemet writes:
> > * Synthesizing multi-insns constants from const anchors make sense
> > regardless
> > whether the constant is used as an address so I am adjusting the cost system
> > to make those stick independent of the context. I still need to benchmark
> >
Adam Nemet writes:
> Richard Sandiford writes:
>> Adam Nemet writes:
>> > In order for my CSE const anchor patch to work I needed to drastically
>> > lower
>> > the cost of immediate addition in the MIPS backend. This was acceptable
>> > as a
>> > proof of concept but not in general of course.
Richard Sandiford writes:
> Adam Nemet writes:
> > In order for my CSE const anchor patch to work I needed to drastically lower
> > the cost of immediate addition in the MIPS backend. This was acceptable as
> > a
> > proof of concept but not in general of course.
> >
> > The problem is with "sin
Adam Nemet writes:
> In order for my CSE const anchor patch to work I needed to drastically lower
> the cost of immediate addition in the MIPS backend. This was acceptable as a
> proof of concept but not in general of course.
>
> The problem is with "single-insn"/simple constants. We would also
In order for my CSE const anchor patch to work I needed to drastically lower
the cost of immediate addition in the MIPS backend. This was acceptable as a
proof of concept but not in general of course.
The problem is with "single-insn"/simple constants. We would also like these
to use const ancho