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
6fb85418
Commit
6fb85418
authored
Nov 10, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Nov 10, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix REG_INC note handling in register renamer.
From-SVN: r37364
parent
108d96a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
gcc/ChangeLog
+5
-0
gcc/regrename.c
+8
-3
No files found.
gcc/ChangeLog
View file @
6fb85418
2000-11-09 Bernd Schmidt <bernds@redhat.co.uk>
* regrename.c (build_def_use): Mark contents of REG_INC notes as
needing replacement.
2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
2000-11-09 Jan van Male <jan.vanmale@fenk.wau.nl>
* c-tree.texi: Fix typos.
* c-tree.texi: Fix typos.
...
...
gcc/regrename.c
View file @
6fb85418
...
@@ -714,10 +714,15 @@ build_def_use (bb, regs_used)
...
@@ -714,10 +714,15 @@ build_def_use (bb, regs_used)
scan_rtx
(
insn
,
loc
,
class
,
mark_read
,
type
);
scan_rtx
(
insn
,
loc
,
class
,
mark_read
,
type
);
}
}
/* Step 4: Close chains for registers that die here. */
/* Step 4: Close chains for registers that die here.
Also record updates for REG_INC notes. */
for
(
note
=
REG_NOTES
(
insn
);
note
;
note
=
XEXP
(
note
,
1
))
for
(
note
=
REG_NOTES
(
insn
);
note
;
note
=
XEXP
(
note
,
1
))
if
(
REG_NOTE_KIND
(
note
)
==
REG_DEAD
)
{
scan_rtx
(
insn
,
&
XEXP
(
note
,
0
),
NO_REGS
,
terminate_dead
,
OP_IN
);
if
(
REG_NOTE_KIND
(
note
)
==
REG_DEAD
)
scan_rtx
(
insn
,
&
XEXP
(
note
,
0
),
NO_REGS
,
terminate_dead
,
OP_IN
);
else
if
(
REG_NOTE_KIND
(
note
)
==
REG_INC
)
scan_rtx
(
insn
,
&
XEXP
(
note
,
0
),
ALL_REGS
,
mark_read
,
OP_INOUT
);
}
/* Step 4B: If this is a call, any chain live at this point
/* Step 4B: If this is a call, any chain live at this point
requires a caller-saved reg. */
requires a caller-saved reg. */
...
...
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