Re: [patch] Add simple narrowing optimization to expand_case

2019-07-24 Thread Jeff Law
On 7/24/19 3:57 AM, Eric Botcazou wrote: > Hi, > > this adds a simple narrowing optimization to expand_case in order to avoid > calling a double-word comparison routine when it is unnecessary to do so. > This is mainly for -O0 because the optimization is otherwise done by forward > propagation a

[patch] Add simple narrowing optimization to expand_case

2019-07-24 Thread Eric Botcazou
Hi, this adds a simple narrowing optimization to expand_case in order to avoid calling a double-word comparison routine when it is unnecessary to do so. This is mainly for -O0 because the optimization is otherwise done by forward propagation and avoids having to drag libgcc or not depending on t