This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37312] -Os significantly faster than -O2 on test case
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2008 13:42:30 -0000
- Subject: [Bug tree-optimization/37312] -Os significantly faster than -O2 on test case
- References: <bug-37312-7834@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-09-01 13:42 -------
Uh, well. The code ist mostly inline assembly which doesn't give GCC much
freedom to do something. I guess -O2 simply optimizes "too much" around the
asm. Try not using inline assembly instead.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37312