Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
23f78db8
Commit
23f78db8
authored
May 23, 2015
by
Matthias Braun
Browse files
be: Some cleanups
parent
1dff67d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/bespillutil.c
View file @
23f78db8
...
...
@@ -279,7 +279,6 @@ static void spill_node(spill_env_t *env, spill_info_t *spillinfo);
*/
static
void
spill_phi
(
spill_env_t
*
env
,
spill_info_t
*
spillinfo
)
{
assert
(
!
get_opt_cse
());
ir_node
*
phi
=
spillinfo
->
to_spill
;
DBG
((
dbg
,
LEVEL_1
,
"spilling Phi %+F:
\n
"
,
phi
));
...
...
ir/be/ia32/bearch_ia32.c
View file @
23f78db8
...
...
@@ -936,18 +936,20 @@ static void ia32_collect_frame_entity_nodes(ir_node *node, void *data)
be_forbid_coalescing
(
env
);
}
if
(
!
is_ia32_irn
(
node
)
||
get_ia32_frame_ent
(
node
)
!=
NULL
if
(
!
is_ia32_irn
(
node
)
||
get_ia32_frame_ent
(
node
)
!=
NULL
||
get_ia32_op_type
(
node
)
!=
ia32_AddrModeS
)
return
;
ir_type
const
*
type
;
switch
(
get_ia32_frame_use
(
node
))
{
case
IA32_FRAME_USE_NONE
:
return
;
case
IA32_FRAME_USE_32BIT
:
type
=
get_type_for_mode
(
ia32_mode_gp
);
break
;
case
IA32_FRAME_USE_64BIT
:
type
=
get_type_for_mode
(
mode_Ls
);
break
;
default:
{
case
IA32_FRAME_USE_32BIT
:
type
=
get_type_for_mode
(
ia32_mode_gp
);
goto
request_entity
;
case
IA32_FRAME_USE_64BIT
:
type
=
get_type_for_mode
(
mode_Ls
);
goto
request_entity
;
case
IA32_FRAME_USE_AUTO
:
{
ir_mode
*
mode
=
get_ia32_ls_mode
(
node
);
/* stupid hack: in some situations (like reloads folded into ConvI2I
* with 8bit mode, an 8bit entity and reload+spill would suffice, but
...
...
@@ -962,9 +964,11 @@ static void ia32_collect_frame_entity_nodes(ir_node *node, void *data)
}
else
{
type
=
get_type_for_mode
(
mode
);
}
break
;
goto
request_entity
;
}
}
panic
(
"invalid frame use type"
);
request_entity:
be_load_needs_frame_entity
(
env
,
node
,
type
);
}
...
...
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