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
c9212f33
Commit
c9212f33
authored
Feb 24, 2001
by
Jan Hubicka
Committed by
Jan Hubicka
Feb 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (canonicalize_condition): Move to reversed_comparison_code.
From-SVN: r40019
parent
4f0a3098
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
23 deletions
+17
-23
gcc/ChangeLog
+4
-0
gcc/loop.c
+13
-23
No files found.
gcc/ChangeLog
View file @
c9212f33
Sat Feb 24 03:17:09 CET 2001 Jan Hubicka <jh@suse.cz>
* loop.c (canonicalize_condition): Move to reversed_comparison_code.
2001-02-21 DJ Delorie <dj@redhat.com>
* config/i960/i960.h (FRAME_POINTER_REQUIRED): Revert removal of
...
...
gcc/loop.c
View file @
c9212f33
...
...
@@ -8305,7 +8305,6 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
rtx
tem
;
rtx
op0
,
op1
;
int
reverse_code
=
0
;
int
did_reverse_condition
=
0
;
enum
machine_mode
mode
;
code
=
GET_CODE
(
cond
);
...
...
@@ -8314,10 +8313,9 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
op1
=
XEXP
(
cond
,
1
);
if
(
reverse
)
{
code
=
reverse_condition
(
code
);
did_reverse_condition
^=
1
;
}
code
=
reversed_comparison_code
(
cond
,
insn
);
if
(
code
==
UNKNOWN
)
return
0
;
if
(
earliest
)
*
earliest
=
insn
;
...
...
@@ -8368,13 +8366,19 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
if
((
prev
=
prev_nonnote_insn
(
prev
))
==
0
||
GET_CODE
(
prev
)
!=
INSN
||
FIND_REG_INC_NOTE
(
prev
,
0
)
||
(
set
=
single_set
(
prev
))
==
0
)
||
FIND_REG_INC_NOTE
(
prev
,
0
))
break
;
set
=
set_of
(
op0
,
prev
);
if
(
set
&&
(
GET_CODE
(
set
)
!=
SET
||
!
rtx_equal_p
(
SET_DEST
(
set
),
op0
)))
break
;
/* If this is setting OP0, get what it sets it to if it looks
relevant. */
if
(
rtx_equal_p
(
SET_DEST
(
set
),
op0
)
)
if
(
set
)
{
enum
machine_mode
inner_mode
=
GET_MODE
(
SET_DEST
(
set
));
...
...
@@ -8434,10 +8438,6 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
||
mode
==
VOIDmode
||
inner_mode
==
VOIDmode
))
{
/* We might have reversed a LT to get a GE here. But this wasn't
actually the comparison of data, so we don't flag that we
have had to reverse the condition. */
did_reverse_condition
^=
1
;
reverse_code
=
1
;
x
=
SET_SRC
(
set
);
}
...
...
@@ -8455,10 +8455,9 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
code
=
GET_CODE
(
x
);
if
(
reverse_code
)
{
code
=
reverse
_condition
(
code
);
code
=
reverse
d_comparison_code
(
x
,
prev
);
if
(
code
==
UNKNOWN
)
return
0
;
did_reverse_condition
^=
1
;
reverse_code
=
0
;
}
...
...
@@ -8521,15 +8520,6 @@ canonicalize_condition (insn, cond, reverse, earliest, want_reg)
}
}
/* If this was floating-point and we reversed anything other than an
EQ or NE or (UN)ORDERED, return zero. */
if
(
TARGET_FLOAT_FORMAT
==
IEEE_FLOAT_FORMAT
&&
did_reverse_condition
&&
code
!=
NE
&&
code
!=
EQ
&&
code
!=
UNORDERED
&&
code
!=
ORDERED
&&
!
flag_fast_math
&&
GET_MODE_CLASS
(
GET_MODE
(
op0
))
==
MODE_FLOAT
)
return
0
;
#ifdef HAVE_cc0
/* Never return CC0; return zero instead. */
if
(
op0
==
cc0_rtx
)
...
...
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