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
4f4b88d0
Commit
4f4b88d0
authored
Sep 07, 2000
by
Herman A.J. ten Brugge
Committed by
Jeff Law
Sep 06, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* flow.c (insn_dead_p): Detect dead memory stores with auto increments.
From-SVN: r36220
parent
f725a3ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
gcc/ChangeLog
+4
-0
gcc/flow.c
+14
-1
No files found.
gcc/ChangeLog
View file @
4f4b88d0
2000-09-06 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* flow.c (insn_dead_p): Detect dead memory stores with auto increments.
2000-09-06 Kazu Hirata <kazu@hxi.com>
2000-09-06 Kazu Hirata <kazu@hxi.com>
* calls.c: Fix formatting.
* calls.c: Fix formatting.
...
...
gcc/flow.c
View file @
4f4b88d0
...
@@ -3954,8 +3954,21 @@ insn_dead_p (pbi, x, call_ok, notes)
...
@@ -3954,8 +3954,21 @@ insn_dead_p (pbi, x, call_ok, notes)
temp
=
pbi
->
mem_set_list
;
temp
=
pbi
->
mem_set_list
;
while
(
temp
)
while
(
temp
)
{
{
if
(
rtx_equal_p
(
XEXP
(
temp
,
0
),
r
))
rtx
mem
=
XEXP
(
temp
,
0
);
if
(
rtx_equal_p
(
mem
,
r
))
return
1
;
#ifdef AUTO_INC_DEC
/* Check if memory reference matches an auto increment. Only
post increment/decrement or modify are valid. */
if
(
GET_MODE
(
mem
)
==
GET_MODE
(
r
)
&&
(
GET_CODE
(
XEXP
(
mem
,
0
))
==
POST_DEC
||
GET_CODE
(
XEXP
(
mem
,
0
))
==
POST_INC
||
GET_CODE
(
XEXP
(
mem
,
0
))
==
POST_MODIFY
)
&&
GET_MODE
(
XEXP
(
mem
,
0
))
==
GET_MODE
(
r
)
&&
rtx_equal_p
(
XEXP
(
XEXP
(
mem
,
0
),
0
),
XEXP
(
r
,
0
)))
return
1
;
return
1
;
#endif
temp
=
XEXP
(
temp
,
1
);
temp
=
XEXP
(
temp
,
1
);
}
}
}
}
...
...
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