aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2024-05-28 23:18:14 +0200
committerHans-Peter Nilsson <hp@bitrange.com>2024-05-28 23:18:14 +0200
commit802a98d128f9b0eea2432f6511328d14e0bd721b (patch)
treef396c3db7ee4600cf227a27663ceb88192ad042d /libcpp
parente1abce5b6ad8f5aee86ec7729b516d81014db09e (diff)
downloadgcc-802a98d128f9b0eea2432f6511328d14e0bd721b.zip
gcc-802a98d128f9b0eea2432f6511328d14e0bd721b.tar.gz
gcc-802a98d128f9b0eea2432f6511328d14e0bd721b.tar.bz2
resource.cc: Remove redundant conditionals
No functional change. - We always have a target_hash_table and bb_ticks because init_resource_info is always called. These conditionals are an ancient artifact: it's been quite a while since resource.cc was used elsewhere than exclusively from reorg.cc - In mark_target_live_regs, get rid of a now-redundant "if (tinfo != NULL)" conditional and replace an "if (bb)" with a gcc_assert. A "git diff -wb" (ignore whitespace diff) is better at showing the actual changes. * resource.cc (free_resource_info, clear_hashed_info_for_insn): Don't check for non-null target_hash_table and bb_ticks. (mark_target_live_regs): Ditto. Replace check for non-NULL result from BLOCK_FOR_INSN with a call to gcc_assert. Fold code conditioned on tinfo != NULL.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions