diff options
author | Mark Hatle <mark.hatle@kernel.crashing.org> | 2020-08-13 15:25:54 -0500 |
---|---|---|
committer | Mark Hatle <mark.hatle@kernel.crashing.org> | 2020-08-14 11:56:34 -0500 |
commit | 276f2a014483170cfbcbf391c6350426e0a19fdc (patch) | |
tree | b68a8b36c7d5df81fa6adff396e1f255715dc0b2 /meta-microblaze/recipes-devtools/gcc/gcc-10/0021-Patch-OPT-Update-heuristics-for-loop-invariant-for-a.patch | |
parent | 559d46390c65d34c14b56a7f8690b1ac705430ac (diff) | |
download | meta-xilinx-276f2a014483170cfbcbf391c6350426e0a19fdc.tar.gz |
meta-microblaze: toolchains
Resync the microblaze toolchain items to match the latest YP master version.
binutils and gdb are based on the same patch set, but the release version
are based on slightly different sources, thus the patches are a bit
different.
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Diffstat (limited to 'meta-microblaze/recipes-devtools/gcc/gcc-10/0021-Patch-OPT-Update-heuristics-for-loop-invariant-for-a.patch')
-rw-r--r-- | meta-microblaze/recipes-devtools/gcc/gcc-10/0021-Patch-OPT-Update-heuristics-for-loop-invariant-for-a.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-devtools/gcc/gcc-10/0021-Patch-OPT-Update-heuristics-for-loop-invariant-for-a.patch b/meta-microblaze/recipes-devtools/gcc/gcc-10/0021-Patch-OPT-Update-heuristics-for-loop-invariant-for-a.patch new file mode 100644 index 00000000..b4d03172 --- /dev/null +++ b/meta-microblaze/recipes-devtools/gcc/gcc-10/0021-Patch-OPT-Update-heuristics-for-loop-invariant-for-a.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From fe7962c6cc54a5d5f80db90ccc06b8603ddeb74f Mon Sep 17 00:00:00 2001 | ||
2 | From: Mahesh Bodapati <mbodapat@xilinx.com> | ||
3 | Date: Tue, 17 Jan 2017 17:33:31 +0530 | ||
4 | Subject: [PATCH 21/58] [Patch] OPT: Update heuristics for loop-invariant for | ||
5 | address arithmetic | ||
6 | |||
7 | The changes are made in the patch to update the heuristics | ||
8 | for loop invariant for address arithmetic. The heuristics is | ||
9 | changed to calculate the estimated register pressure cost when | ||
10 | ira based register pressure is not enabled. The estimated | ||
11 | register pressure cost modifies the existing calculation cost | ||
12 | associated to perform the Loop invariant code motion for address | ||
13 | arithmetic. | ||
14 | |||
15 | ChangeLog: | ||
16 | 2015-06-17 Ajit Agarwal <ajitkum@xilinx.com> | ||
17 | Nagaraju Mekala <nmekala@xilinx.com> | ||
18 | |||
19 | * loop-invariant.c (gain_for_invariant): update the | ||
20 | heuristics for estimate_reg_pressure_cost. | ||
21 | |||
22 | Signed-off-by:Ajit Agarwal ajitkum@xilinx.com | ||
23 | Nagaraju Mekala nmekala@xilinx.com | ||
24 | --- | ||
25 | gcc/loop-invariant.c | 6 ++---- | ||
26 | 1 file changed, 2 insertions(+), 4 deletions(-) | ||
27 | |||
28 | diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c | ||
29 | index 37ae6549e56..f6385d6cf43 100644 | ||
30 | --- a/gcc/loop-invariant.c | ||
31 | +++ b/gcc/loop-invariant.c | ||
32 | @@ -1465,10 +1465,8 @@ gain_for_invariant (struct invariant *inv, unsigned *regs_needed, | ||
33 | |||
34 | if (! flag_ira_loop_pressure) | ||
35 | { | ||
36 | - size_cost = (estimate_reg_pressure_cost (new_regs[0] + regs_needed[0], | ||
37 | - regs_used, speed, call_p) | ||
38 | - - estimate_reg_pressure_cost (new_regs[0], | ||
39 | - regs_used, speed, call_p)); | ||
40 | + size_cost = estimate_reg_pressure_cost (regs_needed[0], | ||
41 | + regs_used, speed, call_p); | ||
42 | } | ||
43 | else if (ret < 0) | ||
44 | return -1; | ||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||