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
eb32d0c6
Commit
eb32d0c6
authored
Nov 09, 2012
by
Matthias Braun
Browse files
sparc: fix lower_dw/lower_switch order
This should fix testsuite/opt/switch_ll.c
parent
e87a9105
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/bearch_sparc.c
View file @
eb32d0c6
...
...
@@ -447,12 +447,16 @@ static void sparc_lower_for_target(void)
lower_builtins
(
0
,
NULL
);
for
(
size_t
i
=
0
;
i
<
n_irgs
;
++
i
)
{
ir_graph
*
irg
=
get_irp_irg
(
i
);
lower_switch
(
irg
,
4
,
256
,
mode_gp
);
}
sparc_lower_64bit
();
for
(
i
=
0
;
i
<
n_irgs
;
++
i
)
{
ir_graph
*
irg
=
get_irp_irg
(
i
);
ir_lower_mode_b
(
irg
,
mode_Iu
);
lower_switch
(
irg
,
4
,
256
,
mode_gp
);
/* TODO: Pass SPARC_MIN_STACKSIZE as addr_delta as soon as
* Alloc nodes are implemented more efficiently. */
lower_alloc
(
irg
,
SPARC_STACK_ALIGNMENT
,
true
,
0
);
...
...
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