Re: [PATCH] Improved handling of shifts/rotates in bit CCP.

2021-08-24 Thread Richard Biener via Gcc-patches
On Sun, Aug 22, 2021 at 4:03 PM Roger Sayle wrote: > > > > This patch is the next in the series to improve bit bounds in tree-ssa's > > bit CCP pass, this time: bounds for shifts and rotates by unknown amounts. > > This allows us to optimize expressions such as ((x&15)<<(y&24))&64. > > In this cas

[PATCH] Improved handling of shifts/rotates in bit CCP.

2021-08-22 Thread Roger Sayle
This patch is the next in the series to improve bit bounds in tree-ssa's bit CCP pass, this time: bounds for shifts and rotates by unknown amounts. This allows us to optimize expressions such as ((x&15)<<(y&24))&64. In this case, the expression (y&24) contains only two unknown bits, and can