diff options
author | Richard Biener <rguenther@suse.de> | 2013-03-18 10:29:43 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-03-18 10:29:43 +0000 |
commit | 31348d52c09909e89c7f1a99c72e1d0def60277d (patch) | |
tree | f21a962e1c2d439f50cf583d38c7881af0f9a39f /gcc/gimple.h | |
parent | fcac74a177b6c86bf70320aae7145f3b79e54739 (diff) | |
download | gcc-31348d52c09909e89c7f1a99c72e1d0def60277d.zip gcc-31348d52c09909e89c7f1a99c72e1d0def60277d.tar.gz gcc-31348d52c09909e89c7f1a99c72e1d0def60277d.tar.bz2 |
re PR middle-end/56483 (LTO issue with expanding GIMPLE_COND)
2013-03-18 Richard Biener <rguenther@suse.de>
PR middle-end/56483
* cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
and implement properly.
* gimple.h (gimple_cond_single_var_p): Remove.
From-SVN: r196776
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 1bbd7d7..475d2ea 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -2750,23 +2750,6 @@ gimple_cond_false_p (const_gimple gs) return false; } -/* Check if conditional statement GS is of the form 'if (var != 0)' or - 'if (var == 1)' */ - -static inline bool -gimple_cond_single_var_p (gimple gs) -{ - if (gimple_cond_code (gs) == NE_EXPR - && gimple_cond_rhs (gs) == boolean_false_node) - return true; - - if (gimple_cond_code (gs) == EQ_EXPR - && gimple_cond_rhs (gs) == boolean_true_node) - return true; - - return false; -} - /* Set the code, LHS and RHS of GIMPLE_COND STMT from CODE, LHS and RHS. */ static inline void |