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
096759eb
Commit
096759eb
authored
Sep 20, 2004
by
Jakub Jelinek
Committed by
Jakub Jelinek
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* predict.c (expr_expected_value): Use *_CLASS_P macros.
From-SVN: r87763
parent
1cdcb2cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
gcc/ChangeLog
+4
-0
gcc/predict.c
+2
-3
No files found.
gcc/ChangeLog
View file @
096759eb
2004
-
09
-
20
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
*
predict
.
c
(
expr_expected_value
):
Use
*
_CLASS_P
macros
.
2004
-
09
-
20
Daniel
Berlin
<
dberlin
@
dberlin
.
org
>
2004
-
09
-
20
Daniel
Berlin
<
dberlin
@
dberlin
.
org
>
*
tree
-
ssa
-
pre
.
c
(
compute_antic_aux
):
Use
malloc
'd worklist, to avoid
*
tree
-
ssa
-
pre
.
c
(
compute_antic_aux
):
Use
malloc
'd worklist, to avoid
...
...
gcc/predict.c
View file @
096759eb
...
@@ -944,8 +944,7 @@ expr_expected_value (tree expr, bitmap visited)
...
@@ -944,8 +944,7 @@ expr_expected_value (tree expr, bitmap visited)
return
TREE_VALUE
(
TREE_CHAIN
(
TREE_OPERAND
(
expr
,
1
)));
return
TREE_VALUE
(
TREE_CHAIN
(
TREE_OPERAND
(
expr
,
1
)));
}
}
}
}
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
expr
))
==
'2'
if
(
BINARY_CLASS_P
(
expr
)
||
COMPARISON_CLASS_P
(
expr
))
||
TREE_CODE_CLASS
(
TREE_CODE
(
expr
))
==
'<'
)
{
{
tree
op0
,
op1
,
res
;
tree
op0
,
op1
,
res
;
op0
=
expr_expected_value
(
TREE_OPERAND
(
expr
,
0
),
visited
);
op0
=
expr_expected_value
(
TREE_OPERAND
(
expr
,
0
),
visited
);
...
@@ -959,7 +958,7 @@ expr_expected_value (tree expr, bitmap visited)
...
@@ -959,7 +958,7 @@ expr_expected_value (tree expr, bitmap visited)
return
res
;
return
res
;
return
NULL
;
return
NULL
;
}
}
if
(
TREE_CODE_CLASS
(
TREE_CODE
(
expr
))
==
'1'
)
if
(
UNARY_CLASS_P
(
expr
)
)
{
{
tree
op0
,
res
;
tree
op0
,
res
;
op0
=
expr_expected_value
(
TREE_OPERAND
(
expr
,
0
),
visited
);
op0
=
expr_expected_value
(
TREE_OPERAND
(
expr
,
0
),
visited
);
...
...
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