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
a5d8d874
Commit
a5d8d874
authored
Nov 23, 2003
by
Zdenek Dvorak
Committed by
Zdenek Dvorak
Nov 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* genattrtab.c (count_sub_rtxs): Removed.
From-SVN: r73860
parent
8c2a5582
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
60 deletions
+4
-60
gcc/ChangeLog
+4
-0
gcc/genattrtab.c
+0
-60
No files found.
gcc/ChangeLog
View file @
a5d8d874
2003-11-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* genattrtab.c (count_sub_rtxs): Removed.
2003-11-23 Richard Earnshaw <rearnsha@arm.com>
* recog.c (preprocess_constraints): Only zero those elements of
...
...
gcc/genattrtab.c
View file @
a5d8d874
...
...
@@ -407,7 +407,6 @@ static rtx test_for_current_value (struct dimension *, int);
static
rtx
simplify_with_current_value
(
rtx
,
struct
dimension
*
,
int
);
static
rtx
simplify_with_current_value_aux
(
rtx
);
static
void
clear_struct_flag
(
rtx
);
static
int
count_sub_rtxs
(
rtx
,
int
);
static
void
remove_insn_ent
(
struct
attr_value
*
,
struct
insn_ent
*
);
static
void
insert_insn_ent
(
struct
attr_value
*
,
struct
insn_ent
*
);
static
rtx
insert_right_side
(
enum
rtx_code
,
rtx
,
rtx
,
int
,
int
);
...
...
@@ -3954,65 +3953,6 @@ clear_struct_flag (rtx x)
}
}
/* Return the number of RTX objects making up the expression X.
But if we count more than MAX objects, stop counting. */
static
int
count_sub_rtxs
(
rtx
x
,
int
max
)
{
int
i
;
int
j
;
enum
rtx_code
code
;
const
char
*
fmt
;
int
total
=
0
;
code
=
GET_CODE
(
x
);
switch
(
code
)
{
case
REG
:
case
QUEUED
:
case
CONST_INT
:
case
CONST_DOUBLE
:
case
CONST_VECTOR
:
case
SYMBOL_REF
:
case
CODE_LABEL
:
case
PC
:
case
CC0
:
case
EQ_ATTR
:
case
ATTR_FLAG
:
return
1
;
default:
break
;
}
/* Compare the elements. If any pair of corresponding elements
fail to match, return 0 for the whole things. */
fmt
=
GET_RTX_FORMAT
(
code
);
for
(
i
=
GET_RTX_LENGTH
(
code
)
-
1
;
i
>=
0
;
i
--
)
{
if
(
total
>=
max
)
return
total
;
switch
(
fmt
[
i
])
{
case
'V'
:
case
'E'
:
for
(
j
=
0
;
j
<
XVECLEN
(
x
,
i
);
j
++
)
total
+=
count_sub_rtxs
(
XVECEXP
(
x
,
i
,
j
),
max
);
break
;
case
'e'
:
total
+=
count_sub_rtxs
(
XEXP
(
x
,
i
),
max
);
break
;
}
}
return
total
;
}
/* Create table entries for DEFINE_ATTR. */
static
void
...
...
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