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
8c5eaa3b
Commit
8c5eaa3b
authored
Sep 15, 2014
by
Matthias Braun
Browse files
sparc: fix delay slot corner cases
parent
6d944bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_emitter.c
View file @
8c5eaa3b
...
...
@@ -257,7 +257,7 @@ static bool is_no_instruction(const ir_node *node)
if
(
is_sparc_Ba
(
node
)
&&
ba_is_fallthrough
(
node
))
return
true
;
return
be_is_Keep
(
node
)
||
be_is
_Start
(
node
)
||
is_Phi
(
node
);
return
be_is_Keep
(
node
)
||
is_sparc
_Start
(
node
)
||
is_Phi
(
node
);
}
static
bool
has_delay_slot
(
const
ir_node
*
node
)
...
...
@@ -326,6 +326,8 @@ static bool is_legal_delay_slot_filler(const ir_node *node)
return
false
;
if
(
rbitset_is_set
(
delay_slot_fillers
,
get_irn_idx
(
node
)))
return
false
;
if
(
is_sparc_Save
(
node
))
return
false
;
return
true
;
}
...
...
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