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
a73f9fc9
Commit
a73f9fc9
authored
Aug 17, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(jump_optimize): Allow SUBREG in many places where REG is allowed.
From-SVN: r1872
parent
b8eb43a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gcc/jump.c
+3
-0
No files found.
gcc/jump.c
View file @
a73f9fc9
...
...
@@ -699,6 +699,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
&&
GET_CODE
(
PATTERN
(
temp2
))
==
SET
&&
rtx_equal_p
(
SET_DEST
(
PATTERN
(
temp2
)),
temp1
)
&&
(
GET_CODE
(
SET_SRC
(
PATTERN
(
temp2
)))
==
REG
||
GET_CODE
(
SET_SRC
(
PATTERN
(
temp2
)))
==
SUBREG
||
CONSTANT_P
(
SET_SRC
(
PATTERN
(
temp2
))))
&&
(
REG_NOTES
(
temp2
)
==
0
||
((
REG_NOTE_KIND
(
REG_NOTES
(
temp2
))
==
REG_EQUAL
...
...
@@ -830,6 +831,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
#endif
&&
GET_MODE_CLASS
(
GET_MODE
(
temp1
))
==
MODE_INT
&&
(
GET_CODE
(
temp2
=
SET_SRC
(
PATTERN
(
temp
)))
==
REG
||
GET_CODE
(
temp2
)
==
SUBREG
||
GET_CODE
(
temp2
)
==
CONST_INT
)
/* Allow either form, but prefer the former if both apply. */
&&
(((
temp3
=
reg_set_last
(
temp1
,
insn
))
!=
0
...
...
@@ -838,6 +840,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
&&
REGNO
(
temp3
)
>=
FIRST_PSEUDO_REGISTER
#endif
)
||
GET_CODE
(
temp3
)
==
SUBREG
||
GET_CODE
(
temp3
)
==
CONST_INT
))
/* Make the latter case look like x = x; if (...) x = 0; */
||
((
temp3
=
temp1
,
BRANCH_COST
>=
2
)
...
...
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