Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1578e910
Commit
1578e910
authored
Oct 20, 2009
by
Michael Matz
Committed by
Michael Matz
Oct 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop-invariant.c (create_new_invariant): Use different magic number.
From-SVN: r153022
parent
5a3a8eb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
gcc/ChangeLog
+4
-0
gcc/loop-invariant.c
+10
-1
No files found.
gcc/ChangeLog
View file @
1578e910
2009
-
10
-
20
Michael
Matz
<
matz
@
suse
.
de
>
*
loop
-
invariant
.
c
(
create_new_invariant
):
Use
different
magic
number
.
2009
-
10
-
20
Richard
Earnshaw
<
rearnsha
@
arm
.
com
>
PR
target
/
39247
gcc/loop-invariant.c
View file @
1578e910
...
...
@@ -705,8 +705,17 @@ create_new_invariant (struct def *def, rtx insn, bitmap depends_on,
if
(
def
)
{
inv
->
cost
=
rtx_cost
(
set
,
SET
,
speed
);
/* ??? Try to determine cheapness of address computation. Unfortunately
the address cost is only a relative measure, we can't really compare
it with any absolute number, but only with other address costs.
But here we don't have any other addresses, so compare with a magic
number anyway. It has to be large enough to not regress PR33928
(by avoiding to move reg+8,reg+16,reg+24 invariants), but small
enough to not regress 410.bwaves either (by still moving reg+reg
invariants).
See http://gcc.gnu.org/ml/gcc-patches/2009-10/msg01210.html . */
inv
->
cheap_address
=
address_cost
(
SET_SRC
(
set
),
word_mode
,
speed
)
<
COSTS_N_INSNS
(
1
)
;
speed
)
<
3
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment