Re: [PATCH] Improve forward jump threading of switch statements (PR18046)

2016-08-05 Thread Jeff Law
On 07/28/2016 09:46 PM, Patrick Palka wrote: This patch improves the forward jump threader's ability to thread GIMPLE_SWITCHes by making the VRP simplification callback attempt to determine which case label will be taken. For example, if the index operand of a switch has a value range ~[5,6] alo

Re: [PATCH] Improve forward jump threading of switch statements (PR18046)

2016-08-04 Thread Patrick Palka
On Thu, Jul 28, 2016 at 11:46 PM, Patrick Palka wrote: > This patch improves the forward jump threader's ability to thread > GIMPLE_SWITCHes by making the VRP simplification callback attempt to > determine which case label will be taken. > > For example, if the index operand of a switch has a valu

Re: [PATCH] Improve forward jump threading of switch statements (PR18046)

2016-07-28 Thread Patrick Palka
On Thu, Jul 28, 2016 at 11:46 PM, Patrick Palka wrote: > This patch improves the forward jump threader's ability to thread > GIMPLE_SWITCHes by making the VRP simplification callback attempt to > determine which case label will be taken. > > For example, if the index operand of a switch has a valu

[PATCH] Improve forward jump threading of switch statements (PR18046)

2016-07-28 Thread Patrick Palka
This patch improves the forward jump threader's ability to thread GIMPLE_SWITCHes by making the VRP simplification callback attempt to determine which case label will be taken. For example, if the index operand of a switch has a value range ~[5,6] along some edge and the switch statement has no "c