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
e6d83128
Commit
e6d83128
authored
Jan 25, 2004
by
Jan Hubicka
Committed by
Jan Hubicka
Jan 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
From-SVN: r76553
parent
9c519c93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
gcc/ChangeLog
+4
-0
gcc/combine.c
+10
-9
No files found.
gcc/ChangeLog
View file @
e6d83128
2004-01-25 Jan Hubicka <jh@suse.cz>
* combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
2004-01-25 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
...
...
gcc/combine.c
View file @
e6d83128
...
...
@@ -9869,7 +9869,7 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
int
num_clobbers_to_add
=
0
;
int
i
;
rtx
notes
=
0
;
rtx
dummy_insn
;
rtx
old_notes
,
old_pat
;
/* If PAT is a PARALLEL, check to see if it contains the CLOBBER
we use to indicate that something didn't match. If we find such a
...
...
@@ -9880,13 +9880,12 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
&&
XEXP
(
XVECEXP
(
pat
,
0
,
i
),
0
)
==
const0_rtx
)
return
-
1
;
/* *pnewpat does not have to be actual PATTERN (insn), so make a dummy
instruction for pattern recognition. */
dummy_insn
=
shallow_copy_rtx
(
insn
);
PATTERN
(
dummy_insn
)
=
pat
;
REG_NOTES
(
dummy_insn
)
=
0
;
old_pat
=
PATTERN
(
insn
);
old_notes
=
REG_NOTES
(
insn
);
PATTERN
(
insn
)
=
pat
;
REG_NOTES
(
insn
)
=
0
;
insn_code_number
=
recog
(
pat
,
dummy_
insn
,
&
num_clobbers_to_add
);
insn_code_number
=
recog
(
pat
,
insn
,
&
num_clobbers_to_add
);
/* If it isn't, there is the possibility that we previously had an insn
that clobbered some register as a side effect, but the combined
...
...
@@ -9911,9 +9910,11 @@ recog_for_combine (rtx *pnewpat, rtx insn, rtx *pnotes)
if
(
pos
==
1
)
pat
=
XVECEXP
(
pat
,
0
,
0
);
PATTERN
(
dummy_
insn
)
=
pat
;
insn_code_number
=
recog
(
pat
,
dummy_
insn
,
&
num_clobbers_to_add
);
PATTERN
(
insn
)
=
pat
;
insn_code_number
=
recog
(
pat
,
insn
,
&
num_clobbers_to_add
);
}
PATTERN
(
insn
)
=
old_pat
;
REG_NOTES
(
insn
)
=
old_notes
;
/* Recognize all noop sets, these will be killed by followup pass. */
if
(
insn_code_number
<
0
&&
GET_CODE
(
pat
)
==
SET
&&
set_noop_p
(
pat
))
...
...
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