| Submitter | Bin Cheng |
|---|---|
| Date | July 26, 2012, 10:20 a.m. |
| Message ID | <001801cd6b18$3b7e1c00$b27a5400$@cheng@arm.com> |
| Download | mbox | patch |
| Permalink | /patch/173394/ |
| State | New |
| Headers | show |
Comments
Patch
Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 189835) +++ gcc/fold-const.c (working copy) @@ -8443,9 +8443,7 @@ 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