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
f460c170
Commit
f460c170
authored
Nov 26, 2012
by
Marek Polacek
Committed by
Marek Polacek
Nov 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant variable in hash_set.
From-SVN: r193820
parent
8bed6809
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
gcc/ChangeLog
+5
-0
gcc/cprop.c
+1
-4
No files found.
gcc/ChangeLog
View file @
f460c170
2012
-
11
-
26
Marek
Polacek
<
polacek
@redhat
.
com
>
*
cprop
.
c
(
hash_set
)
:
Remove
variable
.
Use
regno
variable
directly
.
2012
-
11
-
26
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
2012
-
11
-
26
Eric
Botcazou
<
ebotcazou
@adacore
.
com
>
*
tree
.
h
(
DECL_RESTRICTED_P
)
:
Delete
.
*
tree
.
h
(
DECL_RESTRICTED_P
)
:
Delete
.
gcc/cprop.c
View file @
f460c170
...
@@ -170,10 +170,7 @@ reg_available_p (const_rtx x, const_rtx insn ATTRIBUTE_UNUSED)
...
@@ -170,10 +170,7 @@ reg_available_p (const_rtx x, const_rtx insn ATTRIBUTE_UNUSED)
static
unsigned
int
static
unsigned
int
hash_set
(
int
regno
,
int
hash_table_size
)
hash_set
(
int
regno
,
int
hash_table_size
)
{
{
unsigned
int
hash
;
return
(
unsigned
)
regno
%
hash_table_size
;
hash
=
regno
;
return
hash
%
hash_table_size
;
}
}
/* Insert assignment DEST:=SET from INSN in the hash table.
/* Insert assignment DEST:=SET from INSN in the hash table.
...
...
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