gcc-bugs@gcc.gnu.org
[Top] [All Lists]

[Bug tree-optimization/23115] [4.1 Regression] -ftree-vectorize generate

Subject: [Bug tree-optimization/23115] [4.1 Regression] -ftree-vectorize generates wrong code
From: "pinskia at gcc dot gnu dot org"
Date: 8 Sep 2005 20:03:35 -0000
------- 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Bug tree-optimization/23115] [4.1 Regression] -ftree-vectorize generates wrong code, pinskia at gcc dot gnu dot org <=