This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83262] SELECT CASE slower than IF/ELSE
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Dec 2017 10:03:01 +0000
- Subject: [Bug tree-optimization/83262] SELECT CASE slower than IF/ELSE
- Auto-submitted: auto-generated
- References: <bug-83262-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83262
--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Dick Henderson in clf claims that there is a bug in the code.
> You're comparing apples and oranges. Mike Metcalf ran the
> code with Dick's suggested change.
All my timings after comment 3 are done with the change of 'n' to 'i'.
> There is no statistically significant difference in timings.
Well, my timings do not support that. Depending on the options
and the revisions I see significant differences. In particular
the option '-falign-jumps' is quite bad, at least on
x86_64-apple-darwin17.