This is the mail archive of the gcc@gcc.gnu.org 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]

Re: Whats wrong with this pattern?


> Is converted into mulhi with subregs.
> I've attempted to avoid this by adding new pattern for subreg case and then
> split it ino mulqi or mulsi. For some purpose this don't work. The patterns
> are still matched with mulhi3 even when it is after my attern.
> Interestingly enought when I disable the pattern code works. Can someone
> please describe me whats wrong?

combine only cares about the instruction count, not about the cost of
the instructions involved.
When it forms a combined pattern, it tries to recognize it.  Thus, when
it has generated an HImode mult, it can only match an HImode mult.


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