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
aee9dc31
Commit
aee9dc31
authored
Oct 18, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(canon_reg): Don't call validate_change if INSN is zero.
From-SVN: r2511
parent
9074de27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/cse.c
+3
-2
No files found.
gcc/cse.c
View file @
aee9dc31
...
...
@@ -2386,10 +2386,11 @@ canon_reg (x, insn)
/* If replacing pseudo with hard reg or vice versa, ensure the
insn remains valid. Likewise if the insn has MATCH_DUPs. */
if
(
new
&&
GET_CODE
(
new
)
==
REG
&&
GET_CODE
(
XEXP
(
x
,
i
))
==
REG
if
(
insn
!=
0
&&
new
!=
0
&&
GET_CODE
(
new
)
==
REG
&&
GET_CODE
(
XEXP
(
x
,
i
))
==
REG
&&
(((
REGNO
(
new
)
<
FIRST_PSEUDO_REGISTER
)
!=
(
REGNO
(
XEXP
(
x
,
i
))
<
FIRST_PSEUDO_REGISTER
))
||
(
insn
!=
0
&&
insn_n_dups
[
recog_memoized
(
insn
)]
>
0
)
))
||
insn_n_dups
[
recog_memoized
(
insn
)]
>
0
))
validate_change
(
insn
,
&
XEXP
(
x
,
i
),
new
,
1
);
else
XEXP
(
x
,
i
)
=
new
;
...
...
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