Re: [patch] Take into account range info to optimize range tests

2020-06-26 Thread Richard Biener via Gcc-patches
On Thu, Jun 25, 2020 at 1:07 PM Eric Botcazou wrote: > > Hi, > > ...into bit tests, as done by optimize_range_tests_to_bit_test of the reassoc > pass. The patch is aimed at addressing the following two issues: > > 1. In order to protect the shift operation from undefinedness, the new bit > test

[patch] Take into account range info to optimize range tests

2020-06-25 Thread Eric Botcazou
Hi, ...into bit tests, as done by optimize_range_tests_to_bit_test of the reassoc pass. The patch is aimed at addressing the following two issues: 1. In order to protect the shift operation from undefinedness, the new bit test is guarded with a new test, but this new test uses the range of t