diff options
author | Bin Cheng <bin.cheng@arm.com> | 2012-09-19 01:49:09 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2012-09-19 01:49:09 +0000 |
commit | afb0c9cda9b060d70397c69a6b8d6bd0a00139f0 (patch) | |
tree | 0fe1306285824f34d03730e3abf6da8c885568e3 /gcc/fold-const.c | |
parent | 7a99a2514ec65259857de0743b7fce514e00b6d8 (diff) | |
download | gcc-afb0c9cda9b060d70397c69a6b8d6bd0a00139f0.zip gcc-afb0c9cda9b060d70397c69a6b8d6bd0a00139f0.tar.gz gcc-afb0c9cda9b060d70397c69a6b8d6bd0a00139f0.tar.bz2 |
* fold-const.c (fold_truth_andor) Remove duplicated check on
BRANCH_COST.
From-SVN: r191457
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index c76e7ff..5f2c797 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 |