aboutsummaryrefslogtreecommitdiff
path: root/libgomp/fortran.c
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-09-22 13:18:30 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-09-23 00:45:50 -0700
commit831137be51a54715b73a6178dbfb28215d1963df (patch)
treecf34ed1b7333ebfc04d535ce2128df6b040fcee0 /libgomp/fortran.c
parent2cd76720c1584b55b05570894f602f05f1fc48ec (diff)
downloadgcc-831137be51a54715b73a6178dbfb28215d1963df.zip
gcc-831137be51a54715b73a6178dbfb28215d1963df.tar.gz
gcc-831137be51a54715b73a6178dbfb28215d1963df.tar.bz2
gimple: Simplify gimple_seq_nondebug_singleton_p
The implementation of gimple_seq_nondebug_singleton_p was convoluted on how to determine if the sequence was a singleton (which could contain debug statements). This simplifies the function into two calls. One to get the start after all of the debug statements and then check to see if it is at the one before the end (or there is only debug statements afterwards). Bootstrapped and tested on x86_64-linux-gnu (including ada). gcc/ChangeLog: * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Rewrite to be simplely, gsi_start_nondebug/gsi_one_nondebug_before_end_p. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'libgomp/fortran.c')
0 files changed, 0 insertions, 0 deletions