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
a3b182a7
Commit
a3b182a7
authored
Feb 19, 2004
by
Kazu Hirata
Committed by
Kazu Hirata
Feb 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (all_sets_invariant_p): Remove.
From-SVN: r78090
parent
ca6b7cec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
31 deletions
+4
-31
gcc/ChangeLog
+4
-0
gcc/loop.c
+0
-31
No files found.
gcc/ChangeLog
View file @
a3b182a7
2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
* loop.c (all_sets_invariant_p): Remove.
2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/12916
...
...
gcc/loop.c
View file @
a3b182a7
...
...
@@ -3499,37 +3499,6 @@ consec_sets_invariant_p (const struct loop *loop, rtx reg, int n_sets,
/* If loop_invariant_p ever returned 2, we return 2. */
return
1
+
(
value
&
2
);
}
#if 0
/* I don't think this condition is sufficient to allow INSN
to be moved, so we no longer test it. */
/* Return 1 if all insns in the basic block of INSN and following INSN
that set REG are invariant according to TABLE. */
static int
all_sets_invariant_p (rtx reg, rtx insn, short *table)
{
rtx p = insn;
int regno = REGNO (reg);
while (1)
{
enum rtx_code code;
p = NEXT_INSN (p);
code = GET_CODE (p);
if (code == CODE_LABEL || code == JUMP_INSN)
return 1;
if (code == INSN && GET_CODE (PATTERN (p)) == SET
&& GET_CODE (SET_DEST (PATTERN (p))) == REG
&& REGNO (SET_DEST (PATTERN (p))) == regno)
{
if (! loop_invariant_p (loop, SET_SRC (PATTERN (p)), table))
return 0;
}
}
}
#endif /* 0 */
/* Look at all uses (not sets) of registers in X. For each, if it is
the single use, set USAGE[REGNO] to INSN; if there was a previous use in
...
...
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