diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2023-11-24 17:14:46 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2023-11-24 17:16:18 +0800 |
commit | e377a340b34de1b06f2825691e45a33affcb4c2d (patch) | |
tree | bd8073246371f62a4229edc51c5372a263f4c294 /gcc/rust/util/rust-attributes.h | |
parent | 9a96a9e45b421436ca93efadba0f1901f12fb6c0 (diff) | |
download | gcc-e377a340b34de1b06f2825691e45a33affcb4c2d.zip gcc-e377a340b34de1b06f2825691e45a33affcb4c2d.tar.gz gcc-e377a340b34de1b06f2825691e45a33affcb4c2d.tar.bz2 |
Clean up by_pieces_ninsns
The by pieces compare can be implemented by overlapped operations. So
it should be taken into consideration when doing the adjustment for
overlap operations. The mode returned from
widest_fixed_size_mode_for_size is already checked with mov_optab in
by_pieces_mode_supported_p called by widest_fixed_size_mode_for_size.
So it is no need to check mov_optab again in by_pieces_ninsns. The
patch fixes these issues.
gcc/
* expr.cc (by_pieces_ninsns): Include by pieces compare when
do the adjustment for overlap operations. Replace mov_optab
checks with gcc assertion.
Diffstat (limited to 'gcc/rust/util/rust-attributes.h')
0 files changed, 0 insertions, 0 deletions