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
eeb43d32
Commit
eeb43d32
authored
Aug 21, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(subst): Move up test for too many restarts.
If we restart, clear OP0_MODE since we don't know it. From-SVN: r1926
parent
4d6697ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
gcc/combine.c
+12
-5
No files found.
gcc/combine.c
View file @
eeb43d32
...
...
@@ -2580,6 +2580,18 @@ subst (x, from, to, in_dest, unique_copy)
restart
:
/* If we have restarted more than 4 times, we are probably looping, so
give up. */
if
(
++
n_restarts
>
4
)
return
x
;
/* If we are restarting at all, it means that we no longer know the
original mode of operand 0 (since we have probably changed the
form of X). */
if
(
n_restarts
>
1
)
op0_mode
=
VOIDmode
;
code
=
GET_CODE
(
x
);
/* If this is a commutative operation, put a constant last and a complex
...
...
@@ -2663,11 +2675,6 @@ subst (x, from, to, in_dest, unique_copy)
if
(
temp
)
x
=
temp
,
code
=
GET_CODE
(
temp
);
/* If we have restarted more than 4 times, we are probably looping, so
give up. */
if
(
++
n_restarts
>
4
)
return
x
;
/* First see if we can apply the inverse distributive law. */
if
(
code
==
PLUS
||
code
==
MINUS
||
code
==
IOR
||
code
==
XOR
)
{
...
...
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