This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15187] Inefficient if optimization with -O2 -ffast-math
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Apr 2004 13:35:22 -0000
- Subject: [Bug optimization/15187] Inefficient if optimization with -O2 -ffast-math
- References: <20040428064719.15187.uros@kss-loka.si>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2004-04-28 13:35 -------
It seems to me that cases where this is a bad decision are really rare. Basically
it is only bad if both branches use the same functional unit, which additionally
isn't fully pipelined. This seems like a rare situation, and in the future CPUs
will have even more pipelined units, which will usually not have to be
represented with UNSPEC, and even more expensive branches. IMHO we should leave
it just as it is and maybe try to mitigate it with target specific hacks if
it is really an issue in real programs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15187