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] |
Hello,The heuristic triggers for at least one of the EEMBC codes.
there are two uses of loop notes in sh.c. The first one is not interesting -- it is in sh_adjust_unroll_max, that is dead and commented out (another patch for its complete removal was proposed). The interesting one is in heuristics in sh_optimize_target_register_callee_saved.
The heuristics does not seem to be very useful (in fact I was not able to get it run at all without first commenting out the previous conditions); the patch removes it.
void f () { while (g ()); }
The patch was built and regtested in sh-sim.
There is a gdb with built-in simulator for sh64 in contrib.In case someone is interested in replacing the heuristics later, I also attach a patch for that; lacking the access to real hardware, I was not able to test it properly, though,
which is why I propose the moreThis is not right, you are removing a useful optimization.
conservative patch for now.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |