diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2022-08-10 03:50:45 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2022-08-11 00:37:02 -0500 |
commit | b22086c261f20a7576f233db3537ccf192e7160c (patch) | |
tree | a6f89232d3ad46408ed9892194463a2b6001f333 /gcc/gimple-range-path.cc | |
parent | 7a0e252080e4175a7d6e408ea2aa7a017bb99cce (diff) | |
download | gcc-b22086c261f20a7576f233db3537ccf192e7160c.zip gcc-b22086c261f20a7576f233db3537ccf192e7160c.tar.gz gcc-b22086c261f20a7576f233db3537ccf192e7160c.tar.bz2 |
rs6000: Simplify some code with rs6000_builtin_is_supported
In function rs6000_init_builtins, there is a oversight that
in one target debugging hunk with TARGET_DEBUG_BUILTIN we
missed to handle enum bif_enable ENB_CELL. It's easy to
fix it by adding another if case. But considering the long
term maintainability, this patch updates it with the existing
function rs6000_builtin_is_supported, which centralizes the
related conditions for different enum bif_enable, we only
need to update that function once some condition needs to
be changed later. This also simplifies another usage in
function rs6000_expand_builtin.
gcc/ChangeLog:
* config/rs6000/rs6000-builtin.cc (rs6000_init_builtins): Fix the
oversight on ENB_CELL by simplifying with rs6000_builtin_is_supported.
(rs6000_expand_builtin): Simplify with rs6000_builtin_is_supported.
Diffstat (limited to 'gcc/gimple-range-path.cc')
0 files changed, 0 insertions, 0 deletions