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
96672a3e
Commit
96672a3e
authored
Sep 04, 2012
by
Richard Henderson
Committed by
Richard Henderson
Sep 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
From-SVN: r190941
parent
1a044f41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
gcc/ChangeLog
+4
-0
gcc/alias.c
+8
-2
No files found.
gcc/ChangeLog
View file @
96672a3e
2012-09-04 Richard Henderson <rth@redhat.com>
* alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
2012-09-04 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (value_expressions): Make it a vector of
...
...
gcc/alias.c
View file @
96672a3e
...
...
@@ -2177,12 +2177,18 @@ memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c)
storeqi_unaligned pattern. */
/* Read dependence: X is read after read in MEM takes place. There can
only be a dependence here if both reads are volatile. */
only be a dependence here if both reads are volatile, or if either is
an explicit barrier. */
int
read_dependence
(
const_rtx
mem
,
const_rtx
x
)
{
return
MEM_VOLATILE_P
(
x
)
&&
MEM_VOLATILE_P
(
mem
);
if
(
MEM_VOLATILE_P
(
x
)
&&
MEM_VOLATILE_P
(
mem
))
return
true
;
if
(
MEM_ALIAS_SET
(
x
)
==
ALIAS_SET_MEMORY_BARRIER
||
MEM_ALIAS_SET
(
mem
)
==
ALIAS_SET_MEMORY_BARRIER
)
return
true
;
return
false
;
}
/* Return true if we can determine that the fields referenced cannot
...
...
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