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
91e66235
Commit
91e66235
authored
May 02, 1995
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If expensive optimizations, use different pseudos when making store flag insns.
From-SVN: r9562
parent
473fa8cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
gcc/expmed.c
+18
-7
No files found.
gcc/expmed.c
View file @
91e66235
...
...
@@ -4038,7 +4038,11 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
if
(
last
)
delete_insns_since
(
last
);
subtarget
=
target_mode
==
mode
?
target
:
0
;
/* If expensive optimizations, use different pseudo registers for each
insn, instead of reusing the same pseudo. This leads to better CSE,
but slows down the compiler, since there are more pseudos */
subtarget
=
(
!
flag_expensive_optimizations
&&
(
target_mode
==
mode
))
?
target
:
NULL_RTX
;
/* If we reached here, we can't do this with a scc insn. However, there
are some comparisons that can be done directly. For example, if
...
...
@@ -4183,15 +4187,22 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
if
(
tem
&&
normalizep
)
tem
=
expand_shift
(
RSHIFT_EXPR
,
mode
,
tem
,
size_int
(
GET_MODE_BITSIZE
(
mode
)
-
1
),
tem
,
normalizep
==
1
);
subtarget
,
normalizep
==
1
);
if
(
tem
&&
GET_MODE
(
tem
)
!=
target_mode
)
if
(
tem
)
{
convert_move
(
target
,
tem
,
0
);
tem
=
target
;
if
(
GET_MODE
(
tem
)
!=
target_mode
)
{
convert_move
(
target
,
tem
,
0
);
tem
=
target
;
}
else
if
(
!
subtarget
)
{
emit_move_insn
(
target
,
tem
);
tem
=
target
;
}
}
if
(
tem
==
0
)
else
delete_insns_since
(
last
);
return
tem
;
...
...
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