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
667a4593
Commit
667a4593
authored
30 years ago
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(invariant_p): Reject const volatile references.
From-SVN: r8666
parent
3ab7aa12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/loop.c
+7
-3
No files found.
gcc/loop.c
View file @
667a4593
...
...
@@ -2699,6 +2699,12 @@ invariant_p (x)
return
n_times_set
[
REGNO
(
x
)]
==
0
;
case
MEM
:
/* Volatile memory references must be rejected. Do this before
checking for read-only items, so that volatile read-only items
will be rejected also. */
if
(
MEM_VOLATILE_P
(
x
))
return
0
;
/* Read-only items (such as constants in a constant pool) are
invariant if their address is. */
if
(
RTX_UNCHANGING_P
(
x
))
...
...
@@ -2706,9 +2712,7 @@ invariant_p (x)
/* If we filled the table (or had a subroutine call), any location
in memory could have been clobbered. */
if
(
unknown_address_altered
/* Don't mess with volatile memory references. */
||
MEM_VOLATILE_P
(
x
))
if
(
unknown_address_altered
)
return
0
;
/* See if there is any dependence between a store and this load. */
...
...
This diff is collapsed.
Click to expand it.
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