aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/libgnat/s-crc32.adb
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-31 17:23:19 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-08-31 23:42:59 -0700
commit592a335de563a3a9e36d362c5b9f3fb0a990c1d8 (patch)
tree01e44abddb6c8ac7e3303ac0e3d7f9fc1151c24b /gcc/ada/libgnat/s-crc32.adb
parentf22788c7c01ebb4fefffc1162eb85ffb7a82c314 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
slsr: Use simple_dce_from_worklist in SLSR [PR116554]HEADtrunkmaster
While working on a phiopt patch, it was noticed that SLSR would leave around some unused ssa names. Let's add simple_dce_from_worklist usage to SLSR to remove the dead statements. This should give a small improvemnent for passes afterwards. Boostrapped and tested on x86_64. gcc/ChangeLog: PR tree-optimization/116554 * gimple-ssa-strength-reduction.cc: Include tree-ssa-dce.h. (replace_mult_candidate): Add sdce_worklist argument, mark the rhs1/rhs2 for maybe dceing. (replace_unconditional_candidate): Add sdce_worklist argument, Update call to replace_mult_candidate. (replace_conditional_candidate): Add sdce_worklist argument, update call to replace_mult_candidate. (replace_uncond_cands_and_profitable_phis): Add sdce_worklist argument, update call to replace_conditional_candidate, replace_unconditional_candidate, and replace_uncond_cands_and_profitable_phis. (replace_one_candidate): Add sdce_worklist argument, mark the orig_rhs1/orig_rhs2 for maybe dceing. (replace_profitable_candidates): Add sdce_worklist argument, update call to replace_one_candidate and replace_profitable_candidates. (analyze_candidates_and_replace): Call simple_dce_from_worklist and update calls to replace_profitable_candidates, and replace_uncond_cands_and_profitable_phis. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/ada/libgnat/s-crc32.adb')
0 files changed, 0 insertions, 0 deletions