This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Combine performance regression (was: Fix PR target/18701)

Richard Henderson wrote:
> On Thu, Jan 20, 2005 at 08:11:06PM +0100, Ulrich Weigand wrote:
> > Unfortunately I cannot use an immediate operand for the constant 255,
> > so I have to reload it into a register (or use memory), which means
> > I have to expose this detail before reload ...
> Or do either
[snip excellent suggestions]

I guess something along those lines could work; things are complicated
by the fact that AND will clobber the condition code while an actual
zero-extend from memory won't; also, the optimal location of the
constant varies between immediate, register, and memory depending
on the mode and which zSeries architecture I'm generating code for.

In fact I now recall I experimented with something like that a couple
of years ago and gave it up, because the .md file got very complex,
and I couldn't see any noticable gain.  If you think this is valuable,
I'll try again ...


  Dr. Ulrich Weigand
  Linux on zSeries Development

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]