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
bb6b5461
Commit
bb6b5461
authored
Sep 30, 2010
by
Jakub Jelinek
Committed by
Jakub Jelinek
Sep 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
From-SVN: r164762
parent
140d4eff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletions
+27
-1
gcc/ChangeLog
+2
-0
gcc/dwarf2out.c
+25
-1
No files found.
gcc/ChangeLog
View file @
bb6b5461
2010-09-30 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
PR tree-optimization/31261
* fold-const.c (fold_binary): Optimize ((A & N) + B) & M
for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
gcc/dwarf2out.c
View file @
bb6b5461
...
...
@@ -14162,8 +14162,32 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
}
break
;
case
COMPARE
:
case
IF_THEN_ELSE
:
{
dw_loc_descr_ref
op2
,
bra_node
,
drop_node
;
op0
=
mem_loc_descriptor
(
XEXP
(
rtl
,
0
),
mode
,
VAR_INIT_STATUS_INITIALIZED
);
op1
=
mem_loc_descriptor
(
XEXP
(
rtl
,
1
),
mode
,
VAR_INIT_STATUS_INITIALIZED
);
op2
=
mem_loc_descriptor
(
XEXP
(
rtl
,
2
),
mode
,
VAR_INIT_STATUS_INITIALIZED
);
if
(
op0
==
NULL
||
op1
==
NULL
||
op2
==
NULL
)
break
;
mem_loc_result
=
op1
;
add_loc_descr
(
&
mem_loc_result
,
op2
);
add_loc_descr
(
&
mem_loc_result
,
op0
);
bra_node
=
new_loc_descr
(
DW_OP_bra
,
0
,
0
);
add_loc_descr
(
&
mem_loc_result
,
bra_node
);
add_loc_descr
(
&
mem_loc_result
,
new_loc_descr
(
DW_OP_swap
,
0
,
0
));
drop_node
=
new_loc_descr
(
DW_OP_drop
,
0
,
0
);
add_loc_descr
(
&
mem_loc_result
,
drop_node
);
bra_node
->
dw_loc_oprnd1
.
val_class
=
dw_val_class_loc
;
bra_node
->
dw_loc_oprnd1
.
v
.
val_loc
=
drop_node
;
}
break
;
case
COMPARE
:
case
ROTATE
:
case
ROTATERT
:
case
TRUNCATE
:
...
...
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