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
1d691c53
Commit
1d691c53
authored
Dec 26, 1999
by
Richard Kenner
Committed by
Richard Kenner
Dec 26, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fold-const.c (fold_truthop): Properly check for FP RHS.
From-SVN: r31091
parent
f918cd8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
gcc/ChangeLog
+4
-0
gcc/fold-const.c
+3
-5
No files found.
gcc/ChangeLog
View file @
1d691c53
Sun
Dec
26
07
:
48
:
20
1999
Richard
Kenner
<
kenner
@vlsi1
.
ultra
.
nyu
.
edu
>
*
fold
-
const
.
c
(
fold_truthop
)
:
Properly
check
for
FP
RHS
.
1999
-
12
-
24
Mark
Mitchell
<
mark
@codesourcery
.
com
>
*
toplev
.
h
(
note_deferall_of_defined_inline_function
)
:
Declare
.
...
...
gcc/fold-const.c
View file @
1d691c53
...
...
@@ -3853,13 +3853,11 @@ fold_truthop (code, truth_type, lhs, rhs)
/* If the RHS can be evaluated unconditionally and its operands are
simple, it wins to evaluate the RHS unconditionally on machines
with expensive branches. In this case, this isn't a comparison
that can be merged. */
/* @@ I'm not sure it wins on the m88110 to do this if the comparisons
are with zero (tmw). */
that can be merged. Avoid doing this if the RHS is a floating-point
comparison since those can trap. */
if
(
BRANCH_COST
>=
2
&&
INTEGRAL_TYPE_P
(
TREE_TYPE
(
rhs
))
&&
!
FLOAT_TYPE_P
(
TREE_TYPE
(
rl_arg
))
&&
simple_operand_p
(
rl_arg
)
&&
simple_operand_p
(
rr_arg
))
return
build
(
code
,
truth_type
,
lhs
,
rhs
);
...
...
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