Re: [Bug tree-optimization/18892] New: missed SRA of a block copy

2004-12-08 Thread Diego Novillo
pinskia at gcc dot gnu dot org wrote: The following function: int f(int a) { int i = a & -129; return i == 144; } Should be compiled to: int f1(int a) { return (a & -129) == 144; // aka return 0; } Yes this shows up in real code (gcc), found while testing out my tree combiner. Hmm? What does

[Bug tree-optimization/18892] New: missed SRA of a block copy

2004-12-08 Thread pinskia at gcc dot gnu dot org
The following function: int f(int a) { int i = a & -129; return i == 144; } Should be compiled to: int f1(int a) { return (a & -129) == 144; // aka return 0; } Yes this shows up in real code (gcc), found while testing out my tree combiner. -- Summary: missed SRA of a block copy