Re: [7/8] Use a single comparison for index-based alias checks

2019-11-15 Thread Richard Biener
On Mon, Nov 11, 2019 at 7:51 PM Richard Sandiford wrote: > > This patch rewrites the index-based alias checks to use conditions > of the form: > > (unsigned T) (a - b + bias) <= limit > > E.g. before the patch: > > struct s { int x[100]; }; > > void > f1 (struct s *s1, int a, int b) > {

[7/8] Use a single comparison for index-based alias checks

2019-11-11 Thread Richard Sandiford
This patch rewrites the index-based alias checks to use conditions of the form: (unsigned T) (a - b + bias) <= limit E.g. before the patch: struct s { int x[100]; }; void f1 (struct s *s1, int a, int b) { for (int i = 0; i < 32; ++i) s1->x[i + a] += s1->x[i + b]; } used: