diff options
Diffstat (limited to 'gcc/gimple-predict.h')
-rw-r--r-- | gcc/gimple-predict.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/gimple-predict.h b/gcc/gimple-predict.h index ba58e12..0e6c2e1 100644 --- a/gcc/gimple-predict.h +++ b/gcc/gimple-predict.h @@ -80,4 +80,12 @@ gimple_build_predict (enum br_predictor predictor, enum prediction outcome) return p; } +/* Return true if GS is a GIMPLE_PREDICT statement. */ + +static inline bool +is_gimple_predict (const gimple *gs) +{ + return gimple_code (gs) == GIMPLE_PREDICT; +} + #endif /* GCC_GIMPLE_PREDICT_H */ |