Re: [PATCH] Fix SLSR wrong-code (PR tree-optimization/56962)

2013-04-15 Thread Richard Biener
On Mon, 15 Apr 2013, Jakub Jelinek wrote: > Hi! > > record_increment failed to verify that initializer is usable, which it is > only if cand_stmt is an addition (CAND_ADD can be e.g. even on a cast of > addition to some type of the same precision etc.) and one of the operands is > c->base_expr (b

Re: [PATCH] Fix SLSR wrong-code (PR tree-optimization/56962)

2013-04-15 Thread Bill Schmidt
FWIW, I agree with Jakub's fix. Thanks! Bill On Mon, 2013-04-15 at 16:28 +0200, Jakub Jelinek wrote: > Hi! > > record_increment failed to verify that initializer is usable, which it is > only if cand_stmt is an addition (CAND_ADD can be e.g. even on a cast of > addition to some type of the same

[PATCH] Fix SLSR wrong-code (PR tree-optimization/56962)

2013-04-15 Thread Jakub Jelinek
Hi! record_increment failed to verify that initializer is usable, which it is only if cand_stmt is an addition (CAND_ADD can be e.g. even on a cast of addition to some type of the same precision etc.) and one of the operands is c->base_expr (because then the other operand necessarily has to be the