This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23115] [4.1 Regression] -ftree-vectorize generates wrong code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2005 20:03:35 -0000
- Subject: [Bug tree-optimization/23115] [4.1 Regression] -ftree-vectorize generates wrong code
- References: <20050728183954.23115.p.van-hoof@qub.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-08 20:03 -------
Before:
if (x_16 < x_26) goto <L3>; else goto <L14>;
<L14>:;
# x_4 = PHI <x_26(1), x_16(2)>;
<L3>:;
if (x_16 > n_17) goto <L6>; else goto <L15>;
<L15>:;
# n_5 = PHI <n_17(3), x_16(4)>;
<L6>:;
After:
x_4 = x_16 < x_26 ? x_26 : x_16;
n_5 = 1 ? n_17 : x_16;
That 1 is just wrong.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23115