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
5a33f47d
Commit
5a33f47d
authored
Feb 04, 2015
by
Eric Botcazou
Committed by
Eric Botcazou
Feb 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
From-SVN: r220419
parent
0b986c6a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
gcc/ChangeLog
+4
-0
gcc/tree-ssa-loop-ivopts.c
+6
-6
No files found.
gcc/ChangeLog
View file @
5a33f47d
2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
2015-02-04 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/64922
...
...
gcc/tree-ssa-loop-ivopts.c
View file @
5a33f47d
...
...
@@ -3324,12 +3324,12 @@ get_address_cost (bool symbol_present, bool var_present,
XEXP
(
addr
,
1
)
=
gen_int_mode
(
off
,
address_mode
);
if
(
memory_address_addr_space_p
(
mem_mode
,
addr
,
as
))
break
;
/* For some
TARGET, like ARM THUMB1, the offset should be nature
aligned. Try an aligned offset if
address
_mode is not QImode. */
off
=
(
address_mode
==
QImode
)
?
0
:
((
unsigned
HOST_WIDE_INT
)
1
<<
i
)
-
GET_MODE_SIZE
(
address_mode
)
;
/* For some
strict-alignment targets, the offset must be naturally
aligned. Try an aligned offset if
mem
_mode is not QImode. */
off
=
mem_mode
!=
QImode
?
((
unsigned
HOST_WIDE_INT
)
1
<<
i
)
-
GET_MODE_SIZE
(
mem_mode
)
:
0
;
if
(
off
>
0
)
{
XEXP
(
addr
,
1
)
=
gen_int_mode
(
off
,
address_mode
);
...
...
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