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
6f28d3e9
Commit
6f28d3e9
authored
Mar 25, 1998
by
Richard Henderson
Committed by
Richard Henderson
Mar 25, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* combine.c (make_compound_operation): Simplify (subreg (*_extend) 0).
From-SVN: r18836
parent
7eea6443
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
gcc/ChangeLog
+4
-0
gcc/combine.c
+17
-0
No files found.
gcc/ChangeLog
View file @
6f28d3e9
Thu Mar 26 00:19:47 1998 Richard Henderson <rth@cygnus.com>
* combine.c (make_compound_operation): Simplify (subreg (*_extend) 0).
Wed Mar 25 23:53:11 1998 Jeffrey A Law (law@cygnus.com)
* pa.c (pa_adjust_cost): Avoid redundant calls to get_attr_type.
...
...
gcc/combine.c
View file @
6f28d3e9
...
...
@@ -6038,6 +6038,23 @@ make_compound_operation (x, in_code)
return
newer
;
}
/* If this is a paradoxical subreg, and the new code is a sign or
zero extension, omit the subreg and widen the extension. If it
is a regular subreg, we can still get rid of the subreg by not
widening so much, or in fact removing the extension entirely. */
if
((
GET_CODE
(
tem
)
==
SIGN_EXTEND
||
GET_CODE
(
tem
)
==
ZERO_EXTEND
)
&&
subreg_lowpart_p
(
x
))
{
if
(
GET_MODE_SIZE
(
mode
)
>
GET_MODE_SIZE
(
GET_MODE
(
tem
))
||
(
GET_MODE_SIZE
(
mode
)
>
GET_MODE_SIZE
(
GET_MODE
(
XEXP
(
tem
,
0
)))))
tem
=
gen_rtx_combine
(
GET_CODE
(
tem
),
mode
,
XEXP
(
tem
,
0
));
else
tem
=
gen_lowpart_for_combine
(
mode
,
XEXP
(
tem
,
0
));
return
tem
;
}
break
;
default
:
...
...
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