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
14886ab7
Commit
14886ab7
authored
May 18, 2004
by
Jeff Law
Committed by
Jeff Law
May 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-phiopt.c: Fix various formatting issues.
From-SVN: r81995
parent
81f4be3c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
gcc/ChangeLog
+4
-0
gcc/tree-ssa-phiopt.c
+5
-8
No files found.
gcc/ChangeLog
View file @
14886ab7
2004-05-18 Jeff Law <law@redhat.com>
* tree-ssa-phiopt.c: Fix various formatting issues.
2004-05-18 Steven Bosscher <stevenb@suse.de>
* config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
...
...
gcc/tree-ssa-phiopt.c
View file @
14886ab7
...
...
@@ -78,7 +78,6 @@ tree_ssa_phiopt (void)
if
(
phi
&&
TREE_CHAIN
(
phi
)
==
NULL
&&
PHI_NUM_ARGS
(
phi
)
==
2
)
{
arg0
=
PHI_ARG_DEF
(
phi
,
0
);
arg1
=
PHI_ARG_DEF
(
phi
,
1
);
...
...
@@ -98,10 +97,11 @@ tree_ssa_phiopt (void)
cleanup_tree_cfg
();
}
/* The function conditional_replacement does the main work of doing the conditional
replacement. Return true if the replacement is done. Otherwise return false.
bb is the basic block where the replacement is going to be done on. arg0
is argument 0 from the phi. Likewise for arg1. */
/* The function conditional_replacement does the main work of doing the
conditional replacement. Return true if the replacement is done.
Otherwise return false.
BB is the basic block where the replacement is going to be done on. ARG0
is argument 0 from PHI. Likewise for ARG1. */
static
bool
conditional_replacement
(
basic_block
bb
,
tree
phi
,
tree
arg0
,
tree
arg1
)
...
...
@@ -177,7 +177,6 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
variable to optimize this case as it would likely create
non-gimple code when the condition was converted to the
result's type. */
cond
=
COND_EXPR_COND
(
last_stmt
(
cond_block
));
result
=
PHI_RESULT
(
phi
);
if
(
TREE_CODE
(
cond
)
!=
SSA_NAME
...
...
@@ -216,7 +215,6 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
bsi_insert_after
(
&
bsi
,
new1
,
BSI_NEW_STMT
);
}
/* At this point we know we have a COND_EXPR with two successors.
One successor is BB, the other successor is an empty block which
falls through into BB.
...
...
@@ -234,7 +232,6 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
false edge as the value zero. Note that those conditions are not
the same since only one of the outgoing edges from the COND_EXPR
will directly reach BB and thus be associated with an argument. */
if
((
PHI_ARG_EDGE
(
phi
,
0
)
==
true_edge
&&
integer_onep
(
arg0
))
||
(
PHI_ARG_EDGE
(
phi
,
0
)
==
false_edge
&&
integer_zerop
(
arg0
))
||
(
PHI_ARG_EDGE
(
phi
,
1
)
==
true_edge
&&
integer_onep
(
arg1
))
...
...
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