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
cd5e8f1f
Commit
cd5e8f1f
authored
Jul 05, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(can_combine_p): Don't check for replacing arg of function here.
(can_combine_p): Do it here. From-SVN: r7657
parent
325877e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
gcc/combine.c
+2
-11
No files found.
gcc/combine.c
View file @
cd5e8f1f
...
...
@@ -878,6 +878,8 @@ can_combine_p (insn, i3, pred, succ, pdest, psrc)
||
(
rtx_equal_p
(
src
,
dest
)
&&
find_reg_note
(
insn
,
REG_EQUAL
,
NULL_RTX
))
/* Can't merge a function call. */
||
GET_CODE
(
src
)
==
CALL
/* Don't eliminate a function call argument. */
||
(
GET_CODE
(
i3
)
==
CALL_INSN
&&
find_reg_fusage
(
i3
,
USE
,
dest
))
/* Don't substitute into an incremented register. */
||
FIND_REG_INC_NOTE
(
i3
,
dest
)
||
(
succ
&&
FIND_REG_INC_NOTE
(
succ
,
dest
))
...
...
@@ -1218,17 +1220,6 @@ try_combine (i3, i2, i1)
||
find_reg_note
(
i3
,
REG_LIBCALL
,
NULL_RTX
))
return
0
;
/* If I1 or I2 is an argument set insn, and I3 is the actual
CALL_INSN using it as argument, never combine the two.
This to prevent the elimination of insns that setup a
parameter register for a CALL_INSN. */
if
(
GET_CODE
(
i3
)
==
CALL_INSN
&&
(((
temp
=
single_set
(
i2
))
&&
find_reg_fusage
(
i3
,
USE
,
SET_DEST
(
temp
)))
||
(
i1
&&
(
temp
=
single_set
(
i1
))
&&
find_reg_fusage
(
i3
,
USE
,
SET_DEST
(
temp
)))))
return
0
;
combine_attempts
++
;
undobuf
.
num_undo
=
previous_num_undos
=
0
;
...
...
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