aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-path.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-09-05 09:41:50 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-09-05 11:46:22 +0200
commitcbeeadff4c041c09a6335105d596019b6d583880 (patch)
treea49eff0daaa1750081150b70b8d6d364e4846d0c /gcc/gimple-range-path.cc
parentb27416a7a91b7e6b6b018411ac85cad556ff9903 (diff)
downloadgcc-cbeeadff4c041c09a6335105d596019b6d583880.zip
gcc-cbeeadff4c041c09a6335105d596019b6d583880.tar.gz
gcc-cbeeadff4c041c09a6335105d596019b6d583880.tar.bz2
Clean up registering of paths in backwards threader.
All callers to maybe_register_path() call find_taken_edge() beforehand and pass the edge as an argument. There's no reason to repeat this at each call site. This is a clean-up in preparation for some other enhancements to the backwards threader. Tested on x86-64 Linux. gcc/ChangeLog: * tree-ssa-threadbackward.c (back_threader::maybe_register_path): Remove argument and call find_taken_edge. (back_threader::resolve_phi): Do not calculate taken edge before calling maybe_register_path. (back_threader::find_paths_to_names): Same.
Diffstat (limited to 'gcc/gimple-range-path.cc')
0 files changed, 0 insertions, 0 deletions