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
21f3ae2f
Commit
21f3ae2f
authored
Jul 21, 2011
by
Georg-Johann Lay
Committed by
Georg-Johann Lay
Jul 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
From-SVN: r176554
parent
0b47e344
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/config/avr/avr.c
+2
-2
No files found.
gcc/ChangeLog
View file @
21f3ae2f
2011-07-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
Uros Bizjak <ubizjak@gmail.com>
Richard Henderson <rth@redhat.com>
...
...
gcc/config/avr/avr.c
View file @
21f3ae2f
...
...
@@ -5333,13 +5333,13 @@ avr_rtx_costs (rtx x, int codearg, int outer_code ATTRIBUTE_UNUSED, int *total,
case
CONST_INT
:
case
CONST_DOUBLE
:
case
SYMBOL_REF
:
case
CONST
:
case
LABEL_REF
:
/* Immediate constants are as cheap as registers. */
*
total
=
0
;
return
true
;
case
MEM
:
case
CONST
:
case
LABEL_REF
:
*
total
=
COSTS_N_INSNS
(
GET_MODE_SIZE
(
mode
));
return
true
;
...
...
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