aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-04-27 18:54:44 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-04-30 09:11:54 -0700
commit9c18bdb07e299b25e7526fea16659c7ff8f0d14e (patch)
treeaecae586be883ecb78253834e2a3023a2fd96408 /libcpp
parent8614d60233a64afd7e28ae7af2ab74c4a5b06010 (diff)
downloadgcc-9c18bdb07e299b25e7526fea16659c7ff8f0d14e.zip
gcc-9c18bdb07e299b25e7526fea16659c7ff8f0d14e.tar.gz
gcc-9c18bdb07e299b25e7526fea16659c7ff8f0d14e.tar.bz2
MATCH: change single_non_singleton_phi_for_edges for singleton phis
I noticed that single_non_singleton_phi_for_edges could return a phi whos entry are all the same for the edge. This happens only if there was a single phis in the first place. Also gimple_seq_singleton_p walks the sequence to see if it the one element in the sequence so there is removing that check actually reduces the number of pointer walks needed. Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * tree-ssa-phiopt.cc (single_non_singleton_phi_for_edges): Remove the special case of gimple_seq_singleton_p. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions