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
03a0b8a1
Commit
03a0b8a1
authored
Jun 02, 2009
by
Michael Beck
Browse files
- C99 features removed
[r26088]
parent
ea5e033b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
03a0b8a1
...
...
@@ -2820,6 +2820,7 @@ static ir_node *transform_node_Div(ir_node *n) {
ir_node
*
a
=
get_Div_left
(
n
);
ir_node
*
b
=
get_Div_right
(
n
);
ir_node
*
value
;
const
ir_node
*
dummy
;
if
(
is_Const
(
b
)
&&
is_const_Phi
(
a
))
{
/* check for Div(Phi, Const) */
...
...
@@ -2848,7 +2849,6 @@ static ir_node *transform_node_Div(ir_node *n) {
value
=
n
;
const
ir_node
*
dummy
;
if
(
a
==
b
&&
value_not_zero
(
a
,
&
dummy
))
{
/* BEWARE: we can optimize a/a to 1 only if this cannot cause a exception */
value
=
new_Const
(
get_mode_one
(
mode
));
...
...
ir/opt/ldstopt.c
View file @
03a0b8a1
...
...
@@ -1797,10 +1797,9 @@ typedef struct avail_entry_t {
* Compare two avail entries.
*/
static
int
cmp_avail_entry
(
const
void
*
elt
,
const
void
*
key
,
size_t
size
)
{
(
void
)
size
;
const
avail_entry_t
*
a
=
elt
;
const
avail_entry_t
*
b
=
key
;
(
void
)
size
;
return
a
->
ptr
!=
b
->
ptr
||
a
->
mode
!=
b
->
mode
;
}
/* cmp_avail_entry */
...
...
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