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]

[PATCH] Add REG_EQUAL to mod


Again I know that GCC is in stage 3 but since on PowerPC there is no mod instruction and that the value based profiling needs to have a mod rtl, this adds a REG_EQUAL to the last instruction in the sequence to generate the mod.


OK?


ChangeLog:

* expmed.c (expand_divmod): If the expansion is a remainder then add a REG_EQUAL note.


Patch:

Attachment: addregnotetomod.diff.txt
Description: Text document




Thanks, Andrew Pinski

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