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
37708714
Commit
37708714
authored
May 11, 2017
by
Bin Cheng
Committed by
Bin Cheng
May 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
From-SVN: r247887
parent
c544114f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
gcc/ChangeLog
+4
-0
gcc/tree-ssa-loop-ivopts.c
+3
-10
No files found.
gcc/ChangeLog
View file @
37708714
2017-05-11 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
2017-05-11 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
RSHIFT_EXPR and BIT_NOT_EXPR.
...
...
gcc/tree-ssa-loop-ivopts.c
View file @
37708714
...
...
@@ -5229,19 +5229,12 @@ static bool
autoinc_possible_for_pair
(
struct
ivopts_data
*
data
,
struct
iv_use
*
use
,
struct
iv_cand
*
cand
)
{
bitmap
inv_vars
;
bool
can_autoinc
;
comp_cost
cost
;
if
(
use
->
type
!=
USE_ADDRESS
)
return
false
;
cost
=
get_computation_cost
(
data
,
use
,
cand
,
true
,
&
inv_vars
,
&
can_autoinc
,
NULL
);
BITMAP_FREE
(
inv_vars
);
return
!
cost
.
infinite_cost_p
()
&&
can_autoinc
;
bool
can_autoinc
=
false
;
get_computation_cost
(
data
,
use
,
cand
,
true
,
NULL
,
&
can_autoinc
,
NULL
);
return
can_autoinc
;
}
/* Examine IP_ORIGINAL candidates to see if they are incremented next to a
...
...
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