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
88feab16
Commit
88feab16
authored
Oct 02, 2008
by
Michael Beck
Browse files
reduce the number of created Confirms
[r22414]
parent
0ecad8a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/irconsconfirm.c
View file @
88feab16
...
...
@@ -474,6 +474,13 @@ static void insert_non_null(ir_node *ptr, ir_node *block, env_t *env) {
* Checks if a node is a non-null Confirm.
*/
static
int
is_non_null_Confirm
(
const
ir_node
*
ptr
)
{
/*
* While a SymConst is not a Confirm, it is non-null
* anyway. This helps to reduce the number of
* constructed Confirms.
*/
if
(
is_SymConst_addr_ent
(
ptr
))
return
0
;
for
(;;)
{
if
(
!
is_Confirm
(
ptr
))
return
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