diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2024-08-29 14:00:23 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2024-08-29 14:00:23 +0100 |
commit | 00ec6bd805924b2d7d72cf03b200b3b4b7831835 (patch) | |
tree | 8fe66507e6a41b5d453acfb0856f62e746daf45b /gcc/tree-ssa-phiopt.cc | |
parent | 07e5e054a1c579dec3e1ed2192992b2fea14ad40 (diff) | |
download | gcc-00ec6bd805924b2d7d72cf03b200b3b4b7831835.zip gcc-00ec6bd805924b2d7d72cf03b200b3b4b7831835.tar.gz gcc-00ec6bd805924b2d7d72cf03b200b3b4b7831835.tar.bz2 |
Make some smallest_int_mode_for_size calls cope with failure
smallest_int_mode_for_size now returns an optional mode rather
than aborting on failure. This patch adjusts a couple of callers
so that they fail gracefully when no mode exists.
There should be no behavioural change, since anything that triggers
the new return paths would previously have aborted. I just think
this is how the code would have been written if the option had been
available earlier.
gcc/
* dse.cc (find_shift_sequence): Allow smallest_int_mode_for_size
to failure.
* optabs.cc (expand_twoval_binop_libfunc): Likewise.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions