diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-13 21:51:34 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-12-13 21:51:34 +0000 |
commit | 8414b15059cf897c57b8954e571e6cf0f58775d4 (patch) | |
tree | 282238d6a618d39aa6c15d6fa9ef41308796fd8a /gcc/dojump.c | |
parent | 25790a3e5191af09afe4bfc149968f6a18c03eec (diff) | |
download | gcc-8414b15059cf897c57b8954e571e6cf0f58775d4.tar.gz |
PR tree-optimization/42027
* dojump.c (do_jump <TRUTH_AND_EXPR, TRUTH_OR_EXPR>): Go to
TRUTH_ANDIF_EXPR resp. TRUTH_ORIF_EXPR expander, instead of
falling through.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index de7a3ec8c77..20d52ea5a28 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -458,6 +458,7 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) case LTGT_EXPR: case TRUTH_ANDIF_EXPR: case TRUTH_ORIF_EXPR: + other_code: do_jump_1 (code, TREE_OPERAND (exp, 0), TREE_OPERAND (exp, 1), if_false_label, if_true_label); break; @@ -547,6 +548,8 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) false) >= 4 || TREE_SIDE_EFFECTS (TREE_OPERAND (exp, 1))) goto normal; + code = TRUTH_ANDIF_EXPR; + goto other_code; case BIT_IOR_EXPR: case TRUTH_OR_EXPR: @@ -556,6 +559,8 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) if (BRANCH_COST (optimize_insn_for_speed_p (), false)>= 4 || TREE_SIDE_EFFECTS (TREE_OPERAND (exp, 1))) goto normal; + code = TRUTH_ORIF_EXPR; + goto other_code; /* Fall through and generate the normal code. */ default: |