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
85b87c94
Commit
85b87c94
authored
May 17, 2004
by
Jeff Law
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to commit.
From-SVN: r81969
parent
dd747311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
gcc/tree-ssa-copy.c
+13
-3
No files found.
gcc/tree-ssa-copy.c
View file @
85b87c94
...
@@ -272,11 +272,16 @@ cprop_into_stmt (tree stmt, varray_type const_and_copies)
...
@@ -272,11 +272,16 @@ cprop_into_stmt (tree stmt, varray_type const_and_copies)
/* CONST_AND_COPIES is a table which maps an SSA_NAME to the current
/* CONST_AND_COPIES is a table which maps an SSA_NAME to the current
known value for that SSA_NAME (or NULL if no value is known).
known value for that SSA_NAME (or NULL if no value is known).
Propagate values from CONST_AND_COPIES into the PHI nodes of the
NONZERO_VARS is the set SSA_NAMES known to have a nonzero value,
successors of BB. */
even if we don't know their precise value.
Propagate values from CONST_AND_COPIES and NONZERO_VARS into the PHI
nodes of the successors of BB. */
void
void
cprop_into_successor_phis
(
basic_block
bb
,
varray_type
const_and_copies
)
cprop_into_successor_phis
(
basic_block
bb
,
varray_type
const_and_copies
,
bitmap
nonzero_vars
)
{
{
edge
e
;
edge
e
;
...
@@ -342,6 +347,11 @@ cprop_into_successor_phis (basic_block bb, varray_type const_and_copies)
...
@@ -342,6 +347,11 @@ cprop_into_successor_phis (basic_block bb, varray_type const_and_copies)
if
(
TREE_CODE
(
*
orig_p
)
!=
SSA_NAME
)
if
(
TREE_CODE
(
*
orig_p
)
!=
SSA_NAME
)
continue
;
continue
;
/* If the alternative is known to have a nonzero value, record
that fact in the PHI node itself for future use. */
if
(
bitmap_bit_p
(
nonzero_vars
,
SSA_NAME_VERSION
(
*
orig_p
)))
PHI_ARG_NONZERO
(
phi
,
i
)
=
true
;
/* If we have *ORIG_P in our constant/copy table, then replace
/* If we have *ORIG_P in our constant/copy table, then replace
ORIG_P with its value in our constant/copy table. */
ORIG_P with its value in our constant/copy table. */
new
=
VARRAY_TREE
(
const_and_copies
,
SSA_NAME_VERSION
(
*
orig_p
));
new
=
VARRAY_TREE
(
const_and_copies
,
SSA_NAME_VERSION
(
*
orig_p
));
...
...
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