summaryrefslogtreecommitdiffstats
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index c76e7ff68d3..5f2c7971eb2 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -8435,9 +8435,7 @@ fold_truth_andor (location_t loc, enum tree_code code, tree type,
if ((tem = fold_truth_andor_1 (loc, code, type, arg0, arg1)) != 0)
return tem;
- if ((BRANCH_COST (optimize_function_for_speed_p (cfun),
- false) >= 2)
- && LOGICAL_OP_NON_SHORT_CIRCUIT
+ if (LOGICAL_OP_NON_SHORT_CIRCUIT
&& (code == TRUTH_AND_EXPR
|| code == TRUTH_ANDIF_EXPR
|| code == TRUTH_OR_EXPR
OpenPOWER on IntegriCloud