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
f481cd49
Commit
f481cd49
authored
Nov 02, 2012
by
Jan Hubicka
Committed by
Jan Hubicka
Nov 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* predict.c (predict_loops): Do not predict infinite loops.
From-SVN: r193101
parent
2749bf29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
gcc/ChangeLog
+4
-0
gcc/predict.c
+5
-0
No files found.
gcc/ChangeLog
View file @
f481cd49
2012
-
11
-
02
Jan
Hubicka
<
jh
@suse
.
cz
>
*
predict
.
c
(
predict_loops
)
:
Do
not
predict
infinite
loops
.
2012
-
11
-
02
Jan
Hubicka
<
jh
@suse
.
cz
>
PR
middle
-
end
/
55079
*
tree
-
ssa
-
loop
-
niter
.
c
(
number_of_iterations_exit
)
:
Update
MAX
field
if
NITER
was
folded
to
contant
.
gcc/predict.c
View file @
f481cd49
...
...
@@ -1403,6 +1403,11 @@ predict_loops (void)
exits
=
get_loop_exit_edges
(
loop
);
n_exits
=
VEC_length
(
edge
,
exits
);
if
(
!
n_exits
)
{
VEC_free
(
edge
,
heap
,
exits
);
continue
;
}
FOR_EACH_VEC_ELT
(
edge
,
exits
,
j
,
ex
)
{
...
...
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