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
40cd9e66
Commit
40cd9e66
authored
20 years ago
by
Jeff Law
Committed by
Jeff Law
20 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/tree-ssa/20041122-1.c: New test for missing optimization.
From-SVN: r95332
parent
a4de48bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c
+39
-0
No files found.
gcc/testsuite/ChangeLog
View file @
40cd9e66
2005
-
01
-
31
Jeff
Law
<
law
@redhat
.
com
>
*
gcc
.
dg
/
tree
-
ssa
/
20041122
-
1
.
c
:
New
test
for
missing
optimization
.
2005
-
02
-
20
Tobias
Schl
"uter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.dg/do_iterator: Split loop, markup all lines for
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.dg/tree-ssa/20041122-1.c
0 → 100644
View file @
40cd9e66
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom3" } */
typedef
unsigned
int
size_t
;
extern
void
*
xmalloc
(
size_t
)
__attribute__
((
__malloc__
));
struct
edge_def
{
struct
basic_block_def
*
dest
;
int
flags
;
};
typedef
struct
edge_def
*
edge
;
struct
basic_block_def
{
int
flags
;
};
typedef
struct
basic_block_def
*
basic_block
;
extern
int
n_basic_blocks
;
extern
edge
frob
();
void
find_unreachable_blocks
(
int
frobit
)
{
basic_block
*
tos
,
*
worklist
,
bb
;
tos
=
worklist
=
xmalloc
(
sizeof
(
basic_block
)
*
n_basic_blocks
);
edge
e
=
frob
();
if
(
!
(
e
->
dest
->
flags
&
4
))
{
e
->
dest
->
flags
|=
4
;
*
tos
++
=
e
->
dest
;
}
}
/* If the aliasing code does its job properly, then we should be
able to determine that modifying e->dest->flags does not
modify e or e->dest. The net result is that we only need one
load of e->dest. */
/* { dg-final { scan-tree-dump-times "->dest" 1 "dom3" { xfail *-*-* } } } */
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