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
616cf694
Commit
616cf694
authored
Nov 15, 2005
by
Daniel Jacobowitz
Committed by
Daniel Jacobowitz
Nov 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (scan_loop): Do not insert temporaries for hard registers.
From-SVN: r107019
parent
5d7c0add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ChangeLog
+4
-0
gcc/loop.c
+4
-2
No files found.
gcc/ChangeLog
View file @
616cf694
2005
-
11
-
15
Daniel
Jacobowitz
<
dan
@codesourcery
.
com
>
2005
-
11
-
15
Daniel
Jacobowitz
<
dan
@codesourcery
.
com
>
*
loop
.
c
(
scan_loop
)
:
Do
not
insert
temporaries
for
hard
registers
.
2005
-
11
-
15
Daniel
Jacobowitz
<
dan
@codesourcery
.
com
>
*
config
/
arm
/
lib1funcs
.
asm
(
div0
)
[
L_dvmd_lnx
]
:
Call
raise
instead
*
config
/
arm
/
lib1funcs
.
asm
(
div0
)
[
L_dvmd_lnx
]
:
Call
raise
instead
of
making
syscalls
.
of
making
syscalls
.
*
config
/
arm
/
linux
-
eabi
.
h
(
CLEAR_INSN_CACHE
)
:
Define
.
Set
r7
also
.
*
config
/
arm
/
linux
-
eabi
.
h
(
CLEAR_INSN_CACHE
)
:
Define
.
Set
r7
also
.
...
...
gcc/loop.c
View file @
616cf694
...
@@ -1238,13 +1238,15 @@ scan_loop (struct loop *loop, int flags)
...
@@ -1238,13 +1238,15 @@ scan_loop (struct loop *loop, int flags)
- with -Os (this certainly increases size),
- with -Os (this certainly increases size),
- if the mode doesn't support copy operations (obviously),
- if the mode doesn't support copy operations (obviously),
- if the source is already a reg (the motion will gain nothing),
- if the source is already a reg (the motion will gain nothing),
- if the source is a legitimate constant (likewise). */
- if the source is a legitimate constant (likewise),
- if the dest is a hard register (may be unrecognizable). */
else
if
(
insert_temp
else
if
(
insert_temp
&&
(
optimize_size
&&
(
optimize_size
||
!
can_copy_p
(
GET_MODE
(
SET_SRC
(
set
)))
||
!
can_copy_p
(
GET_MODE
(
SET_SRC
(
set
)))
||
REG_P
(
SET_SRC
(
set
))
||
REG_P
(
SET_SRC
(
set
))
||
(
CONSTANT_P
(
SET_SRC
(
set
))
||
(
CONSTANT_P
(
SET_SRC
(
set
))
&&
LEGITIMATE_CONSTANT_P
(
SET_SRC
(
set
)))))
&&
LEGITIMATE_CONSTANT_P
(
SET_SRC
(
set
)))
||
REGNO
(
SET_DEST
(
set
))
<
FIRST_PSEUDO_REGISTER
))
;
;
else
if
((
tem
=
loop_invariant_p
(
loop
,
src
))
else
if
((
tem
=
loop_invariant_p
(
loop
,
src
))
&&
(
dependencies
==
0
&&
(
dependencies
==
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