Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 2f22090a7e8216f7a9f7e958b77ac83006a7ce89 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mahesh Bodapati <mbodapat@xilinx.com> |
| 3 | Date: Tue, 16 Apr 2019 17:20:24 +0530 |
| 4 | Subject: [PATCH 59/61] Reverting the patch as kernel boot is not working with |
| 5 | this patch CR-1026413 Revert "[Patch,Microblaze]:reverting the cost check |
| 6 | before propagating constants." |
| 7 | |
| 8 | This reverts commit 7156e379a67fa47a5fb9ede1448c0d528dbda65b. |
| 9 | --- |
| 10 | gcc/cprop.c | 4 ---- |
| 11 | 1 file changed, 4 deletions(-) |
| 12 | |
| 13 | diff --git a/gcc/cprop.c b/gcc/cprop.c |
| 14 | index deb706b..e4df509 100644 |
| 15 | --- a/gcc/cprop.c |
| 16 | +++ b/gcc/cprop.c |
| 17 | @@ -733,7 +733,6 @@ try_replace_reg (rtx from, rtx to, rtx_insn *insn) |
| 18 | int success = 0; |
| 19 | rtx set = single_set (insn); |
| 20 | |
| 21 | -#if 0 |
| 22 | bool check_rtx_costs = true; |
| 23 | bool speed = optimize_bb_for_speed_p (BLOCK_FOR_INSN (insn)); |
| 24 | int old_cost = set ? set_rtx_cost (set, speed) : 0; |
| 25 | @@ -745,7 +744,6 @@ try_replace_reg (rtx from, rtx to, rtx_insn *insn) |
| 26 | && (GET_CODE (XEXP (note, 0)) == CONST |
| 27 | || CONSTANT_P (XEXP (note, 0))))) |
| 28 | check_rtx_costs = false; |
| 29 | -#endif |
| 30 | |
| 31 | /* Usually we substitute easy stuff, so we won't copy everything. |
| 32 | We however need to take care to not duplicate non-trivial CONST |
| 33 | @@ -754,7 +752,6 @@ try_replace_reg (rtx from, rtx to, rtx_insn *insn) |
| 34 | |
| 35 | validate_replace_src_group (from, to, insn); |
| 36 | |
| 37 | -#if 0 |
| 38 | /* If TO is a constant, check the cost of the set after propagation |
| 39 | to the cost of the set before the propagation. If the cost is |
| 40 | higher, then do not replace FROM with TO. */ |
| 41 | @@ -767,7 +764,6 @@ try_replace_reg (rtx from, rtx to, rtx_insn *insn) |
| 42 | return false; |
| 43 | } |
| 44 | |
| 45 | -#endif |
| 46 | |
| 47 | if (num_changes_pending () && apply_change_group ()) |
| 48 | success = 1; |
| 49 | -- |
| 50 | 2.7.4 |
| 51 | |