Re: [PATCH] Optimize range tests into bittests (PR tree-optimization/63464)

2014-10-17 Thread Richard Biener
On Fri, 17 Oct 2014, Jakub Jelinek wrote: > Hi! > > This patch optimizes some range tests into bit tests, like we > already do for switches in emit_case_bit_tests, but this time > for a series of ored equality or anded non-equality comparisons. > If at least 3 comparisons (after the contiguous ra

[PATCH] Optimize range tests into bittests (PR tree-optimization/63464)

2014-10-16 Thread Jakub Jelinek
Hi! This patch optimizes some range tests into bit tests, like we already do for switches in emit_case_bit_tests, but this time for a series of ored equality or anded non-equality comparisons. If at least 3 comparisons (after the contiguous range, xor and diff + xor optimizations are performed) ar