]> gcc.gnu.org Git - gcc.git/commit
Adjust LSHIFT_EXPR handling of multiple_of_p
authorRichard Biener <rguenther@suse.de>
Mon, 24 Jan 2022 14:26:46 +0000 (15:26 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 4 Feb 2022 11:54:35 +0000 (12:54 +0100)
commit24c72fb0eedfe7c67f9b15aa31b474a999cc4723
treee37bf8a72449e7e5cc59a280b791c037f681d5f9
parent38948b77dbc16f4c6cf6cff8661bab699b306f03
Adjust LSHIFT_EXPR handling of multiple_of_p

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.

2022-01-24  Richard Biener  <rguenther@suse.de>

* fold-const.cc (multiple_of_p): Re-write and move LSHIFT_EXPR
handling.
gcc/fold-const.cc
This page took 0.060339 seconds and 5 git commands to generate.