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
ca188f16
Commit
ca188f16
authored
Feb 06, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(jump_optimize): When searching for a LOOP_END note to move,
stop if we find a LOOP_BEG note first. From-SVN: r8885
parent
4f2d3674
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
gcc/jump.c
+21
-14
No files found.
gcc/jump.c
View file @
ca188f16
...
...
@@ -1878,24 +1878,31 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
and moved the break sequence outside the loop.
We must move the LOOP_END note to where the
loop really ends now, or we will confuse loop
optimization. */
optimization. Stop if we find a LOOP_BEG note
first, since we don't want to move the LOOP_END
note in that case. */
for
(;
range2after
!=
label2
;
range2after
=
rangenext
)
{
rangenext
=
NEXT_INSN
(
range2after
);
if
(
GET_CODE
(
range2after
)
==
NOTE
&&
(
NOTE_LINE_NUMBER
(
range2after
)
==
NOTE_INSN_LOOP_END
))
if
(
GET_CODE
(
range2after
)
==
NOTE
)
{
NEXT_INSN
(
PREV_INSN
(
range2after
))
=
rangenext
;
PREV_INSN
(
rangenext
)
=
PREV_INSN
(
range2after
);
PREV_INSN
(
range2after
)
=
PREV_INSN
(
range1beg
);
NEXT_INSN
(
range2after
)
=
range1beg
;
NEXT_INSN
(
PREV_INSN
(
range1beg
))
=
range2after
;
PREV_INSN
(
range1beg
)
=
range2after
;
if
(
NOTE_LINE_NUMBER
(
range2after
)
==
NOTE_INSN_LOOP_END
)
{
NEXT_INSN
(
PREV_INSN
(
range2after
))
=
rangenext
;
PREV_INSN
(
rangenext
)
=
PREV_INSN
(
range2after
);
PREV_INSN
(
range2after
)
=
PREV_INSN
(
range1beg
);
NEXT_INSN
(
range2after
)
=
range1beg
;
NEXT_INSN
(
PREV_INSN
(
range1beg
))
=
range2after
;
PREV_INSN
(
range1beg
)
=
range2after
;
}
else
if
(
NOTE_LINE_NUMBER
(
range2after
)
==
NOTE_INSN_LOOP_BEG
)
break
;
}
}
changed
=
1
;
...
...
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