This patch enables -fomit-frame-pointer option by default for PowerPC if -O1 or above optimization level is specified.
GCC already enables this option by default for -O1 or above in all of ppc32, ppc64 and ppc64le.
This option gives some performance improvements in many programs by reducing the overhead in method prologue and epilogue.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
We should have regression tests for this. Maybe update test/Driver/frame-pointer-elim.c?
Comment Actions
Thank you for the comment.
I added regression tests for PPC in test/Driver/frame-pointer.c as for other platforms.