https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69161

--- Comment #7 from ktkachov at gcc dot gnu.org ---
(In reply to Jakub Jelinek from comment #5)
> (In reply to ktkachov from comment #4)
> > Ok, judging from this my simplistic patch from
> > https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00329.html
> > is not appropriate
> 
> I think so.  Also note that the testcase really should be reduced, try delta
> or creduce.

It was somewhat of a pain to get creduce installed (it required llvm and some
other stuff) but it was worth it.
The reduced testcase  for -O3 is:

char a;
b, c, d, e;
fn1() {
  int f = 0;
  for (; f <= 4; f++) {
    d = 0;
    for (; d < 20; d++) {
      long g = &c;
      b &= (0 != g) > e;
    }
    e &= a;
  }
}

Reply via email to