diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-09-03 11:55:11 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-09-03 17:19:54 +0200 |
commit | 62099645c204f64cbf2546fc7c2cd0428c4990e0 (patch) | |
tree | eae3c17da66219926e069f0d452518ccd4acd41e /libgcc | |
parent | 779275c0835b58325f806568836c8b5081d1f52f (diff) | |
download | gcc-62099645c204f64cbf2546fc7c2cd0428c4990e0.zip gcc-62099645c204f64cbf2546fc7c2cd0428c4990e0.tar.gz gcc-62099645c204f64cbf2546fc7c2cd0428c4990e0.tar.bz2 |
Abstract PHI and forwarder block checks in jump threader.
This patch abstracts out a couple common idioms in the forward
threader that I found useful while navigating the code base.
Tested on x86-64 Linux.
gcc/ChangeLog:
* tree-ssa-threadedge.c (has_phis_p): New.
(forwarder_block_p): New.
(potentially_threadable_block): Call forwarder_block_p.
(jump_threader::thread_around_empty_blocks): Call has_phis_p.
(jump_threader::thread_through_normal_block): Call
forwarder_block_p.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions