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
cd6ea7a2
Commit
cd6ea7a2
authored
Sep 01, 2009
by
Richard Henderson
Committed by
Richard Henderson
Sep 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force block enders to be simulated once.
From-SVN: r151273
parent
fd58da50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
6 deletions
+26
-6
gcc/ChangeLog
+7
-0
gcc/tree-ssa-ccp.c
+9
-1
gcc/tree-vrp.c
+10
-5
No files found.
gcc/ChangeLog
View file @
cd6ea7a2
2009-09-01 Richard Henderson <rth@redhat.com>
* tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
stmt_ends_pp_p statements at least once.
* tree-vrp.c (vrp_initialize): Likewise.
(vrp_visit_stmt): Be prepared for non-interesting stmts.
2009-09-01 Dodji Seketeli <dodji@redhat.com>
PR bootstrap/41205
...
...
gcc/tree-ssa-ccp.c
View file @
cd6ea7a2
...
...
@@ -650,7 +650,15 @@ ccp_initialize (void)
for
(
i
=
gsi_start_bb
(
bb
);
!
gsi_end_p
(
i
);
gsi_next
(
&
i
))
{
gimple
stmt
=
gsi_stmt
(
i
);
bool
is_varying
=
surely_varying_stmt_p
(
stmt
);
bool
is_varying
;
/* If the statement is a control insn, then we do not
want to avoid simulating the statement once. Failure
to do so means that those edges will never get added. */
if
(
stmt_ends_bb_p
(
stmt
))
is_varying
=
false
;
else
is_varying
=
surely_varying_stmt_p
(
stmt
);
if
(
is_varying
)
{
...
...
gcc/tree-vrp.c
View file @
cd6ea7a2
...
...
@@ -5317,7 +5317,12 @@ vrp_initialize (void)
{
gimple
stmt
=
gsi_stmt
(
si
);
if
(
!
stmt_interesting_for_vrp
(
stmt
))
/* If the statement is a control insn, then we do not
want to avoid simulating the statement once. Failure
to do so means that those edges will never get added. */
if
(
stmt_ends_bb_p
(
stmt
))
prop_set_simulate_again
(
stmt
,
true
);
else
if
(
!
stmt_interesting_for_vrp
(
stmt
))
{
ssa_op_iter
i
;
tree
def
;
...
...
@@ -5326,9 +5331,7 @@ vrp_initialize (void)
prop_set_simulate_again
(
stmt
,
false
);
}
else
{
prop_set_simulate_again
(
stmt
,
true
);
}
prop_set_simulate_again
(
stmt
,
true
);
}
}
}
...
...
@@ -6087,7 +6090,9 @@ vrp_visit_stmt (gimple stmt, edge *taken_edge_p, tree *output_p)
fprintf
(
dump_file
,
"
\n
"
);
}
if
(
is_gimple_assign
(
stmt
)
||
is_gimple_call
(
stmt
))
if
(
!
stmt_interesting_for_vrp
(
stmt
))
gcc_assert
(
stmt_ends_bb_p
(
stmt
));
else
if
(
is_gimple_assign
(
stmt
)
||
is_gimple_call
(
stmt
))
{
/* In general, assignments with virtual operands are not useful
for deriving ranges, with the obvious exception of calls to
...
...
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