This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/52056] Code optimization sensitive to trivial changes
- From: "gccbug at jamasaru dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Jan 2012 22:34:37 +0000
- Subject: [Bug c/52056] Code optimization sensitive to trivial changes
- Auto-submitted: auto-generated
- References: <bug-52056-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52056
--- Comment #1 from gccbug at jamasaru dot com 2012-01-30 22:34:37 UTC ---
While not relevant to gcc itself, it is interesting that clang also has trouble
with consistently identifying this optimization, but in an opposite way to GCC.
For clang, the unsigned shift code is faster (11.9 seconds) compared to clang's
signed shift (13.3 seconds.) GCC's speeds are 24.3 and 11.3 seconds
respectively. clang does not have any sensitivity to the static variable
declaration.