Re: [PATCH] Fix VRP single-bit signed precision handling (PR tree-optimization/54676)

2012-09-25 Thread Richard Guenther
On Tue, Sep 25, 2012 at 1:23 PM, Jakub Jelinek wrote: > Hi! > > This patch fixes two spots where signed 1-bit precision isn't handled > properly in VRP. With that type, build_int_cst (TREE_TYPE (min), 1) > will overflow and thus adding it to something or subtracting leads to > ICEs or bad code.

[PATCH] Fix VRP single-bit signed precision handling (PR tree-optimization/54676)

2012-09-25 Thread Jakub Jelinek
Hi! This patch fixes two spots where signed 1-bit precision isn't handled properly in VRP. With that type, build_int_cst (TREE_TYPE (min), 1) will overflow and thus adding it to something or subtracting leads to ICEs or bad code. In the first spot min is different from max, which for 1-bit preci