This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[loop] handle fma in loop unroller


The FMA conversion patch I posted for ppc has a regression in

  gcc.dg/var-expand3.c

(which ought to be under gcc.target/powerpc but isn't).  

When fma is represented as (plus (mult)), the loop unroller would
perform the accumulation transform.  With the new FMA rtx code,
this tranformation no longer happened.

I only transform FMA if the accumulator is in the ADD portion.
Thus the initialization and finalization of the loop is as for PLUS.

Tested on x86_64-linux; full test on ppc64 is still going.

Ok?


r~

Attachment: zz
Description: Text document


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