Re: [PATCH] Adjust LSHIFT_EXPR handling of multiple_of_p

2022-02-04 Thread Richard Biener via Gcc-patches
On Fri, 4 Feb 2022, Richard Sandiford wrote: > Richard Biener writes: > > This removes the odd check of size_type_node when handling left-shifts > > as multiplications of 1 << N and instead uses the type as specified. > > It also moves left-shift handling next to multiplications where it > > sema

Re: [PATCH] Adjust LSHIFT_EXPR handling of multiple_of_p

2022-02-04 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > This removes the odd check of size_type_node when handling left-shifts > as multiplications of 1 << N and instead uses the type as specified. > It also moves left-shift handling next to multiplications where it > semantically belongs. > > Boostrap and regtest pending on x8

[PATCH] Adjust LSHIFT_EXPR handling of multiple_of_p

2022-01-24 Thread Richard Biener via Gcc-patches
This removes the odd check of size_type_node when handling left-shifts as multiplications of 1 << N and instead uses the type as specified. It also moves left-shift handling next to multiplications where it semantically belongs. Boostrap and regtest pending on x86_64-unknown-linux-gnu. OK? (I fa