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
3571dde6
Commit
3571dde6
authored
May 16, 2013
by
Marek Polacek
Committed by
Marek Polacek
May 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SCEV cprop dumping.
From-SVN: r198963
parent
f5b6d0d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
gcc/ChangeLog
+4
-0
gcc/tree-scalar-evolution.c
+17
-0
No files found.
gcc/ChangeLog
View file @
3571dde6
2013-05-16 Marek Polacek <polacek@redhat.com>
* tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2013-05-15 Leif Ekblad <leif@rdos.net>
* config/i386/i386.c (ix86_decompose_address): Use
...
...
gcc/tree-scalar-evolution.c
View file @
3571dde6
...
...
@@ -3385,12 +3385,24 @@ scev_const_prop (void)
to be turned into n %= 45. */
||
expression_expensive_p
(
def
))
{
if
(
dump_file
&&
(
dump_flags
&
TDF_DETAILS
))
{
fprintf
(
dump_file
,
"not replacing:
\n
"
);
print_gimple_stmt
(
dump_file
,
phi
,
0
,
0
);
fprintf
(
dump_file
,
"
\n
"
);
}
gsi_next
(
&
psi
);
continue
;
}
/* Eliminate the PHI node and replace it by a computation outside
the loop. */
if
(
dump_file
)
{
fprintf
(
dump_file
,
"
\n
final value replacement:
\n
"
);
print_gimple_stmt
(
dump_file
,
phi
,
0
,
0
);
fprintf
(
dump_file
,
" with
\n
"
);
}
def
=
unshare_expr
(
def
);
remove_phi_node
(
&
psi
,
false
);
...
...
@@ -3398,6 +3410,11 @@ scev_const_prop (void)
true
,
GSI_SAME_STMT
);
ass
=
gimple_build_assign
(
rslt
,
def
);
gsi_insert_before
(
&
bsi
,
ass
,
GSI_SAME_STMT
);
if
(
dump_file
)
{
print_gimple_stmt
(
dump_file
,
ass
,
0
,
0
);
fprintf
(
dump_file
,
"
\n
"
);
}
}
}
return
0
;
...
...
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