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
3d489bc7
Commit
3d489bc7
authored
Jul 27, 2010
by
Maxim Kuvyrkov
Committed by
Maxim Kuvyrkov
Jul 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcse.c (hoist_code): Generate new pseudo for every new set insn.
From-SVN: r162591
parent
ce4c0015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/ChangeLog
+4
-0
gcc/gcse.c
+6
-2
No files found.
gcc/ChangeLog
View file @
3d489bc7
2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
* gcse.c (hoist_code): Generate new pseudo for every new set insn.
2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
PR rtl-optimization/40956
PR rtl-optimization/40956
PR target/42495
PR target/42495
PR middle-end/42574
PR middle-end/42574
...
...
gcc/gcse.c
View file @
3d489bc7
...
@@ -4581,8 +4581,12 @@ hoist_code (void)
...
@@ -4581,8 +4581,12 @@ hoist_code (void)
/* Create a pseudo-reg to store the result of reaching
/* Create a pseudo-reg to store the result of reaching
expressions into. Get the mode for the new pseudo
expressions into. Get the mode for the new pseudo
from the mode of the original destination pseudo. */
from the mode of the original destination pseudo.
if
(
expr
->
reaching_reg
==
NULL
)
It is important to use new pseudos whenever we
emit a set. This will allow reload to use
rematerialization for such registers. */
if
(
!
insn_inserted_p
)
expr
->
reaching_reg
expr
->
reaching_reg
=
gen_reg_rtx_and_attrs
(
SET_DEST
(
set
));
=
gen_reg_rtx_and_attrs
(
SET_DEST
(
set
));
...
...
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