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
2e451cd6
Commit
2e451cd6
authored
Aug 19, 2010
by
Matthias Braun
Browse files
new localopt: Cmp(Eor(x,y),0) <=> Cmp(x,y) for the Equals and NotEquals case
[r27948]
parent
2525d4c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
2e451cd6
...
...
@@ -4440,6 +4440,13 @@ static ir_node *transform_node_Proj_Cmp(ir_node *proj)
}
}
}
/* Cmp(Eor(x, y), 0) <=> Cmp(x, y) at least for the ==0,!=0
* cases */
if
(
is_Const
(
right
)
&&
is_Const_null
(
right
)
&&
is_Eor
(
left
))
{
right
=
get_Eor_right
(
left
);
left
=
get_Eor_left
(
left
);
changed
|=
1
;
}
}
/* mode_is_int(...) */
}
/* proj_nr == pn_Cmp_Eq || proj_nr == pn_Cmp_Lg */
...
...
Write
Preview
Supports
Markdown
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