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
cceaeb0d
Commit
cceaeb0d
authored
Feb 17, 2011
by
Matthias Braun
Browse files
Revert reversion of r28379. Maybe this way it's clear why the assert was wrong.
[r28387]
parent
ef7ac8ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/combo.c
View file @
cceaeb0d
...
...
@@ -290,8 +290,12 @@ static void check_opcode(const partition_t *Z)
key
.
u
.
intVal
=
get_Conv_strict
(
irn
);
break
;
case
iro_Div
:
key
.
mode
=
get_Div_resmode
(
irn
);
key
.
u
.
intVal
=
get_Div_no_remainder
(
irn
);
break
;
case
iro_Mod
:
key
.
mode
=
get_Mod_resmode
(
irn
);
break
;
case
iro_Block
:
key
.
u
.
block
=
irn
;
break
;
...
...
@@ -307,32 +311,41 @@ static void check_opcode(const partition_t *Z)
first
=
0
;
}
else
{
assert
((
unsigned
)
key
.
code
==
get_irn_opcode
(
irn
));
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
assert
(
key
.
arity
==
get_irn_arity
(
irn
));
switch
(
get_irn_opcode
(
irn
))
{
case
iro_Proj
:
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
assert
(
key
.
u
.
proj
==
get_Proj_proj
(
irn
));
break
;
case
iro_Sel
:
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
assert
(
key
.
u
.
ent
==
get_Sel_entity
(
irn
));
break
;
case
iro_Conv
:
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
assert
(
key
.
u
.
intVal
==
get_Conv_strict
(
irn
));
break
;
case
iro_Div
:
assert
(
key
.
mode
==
get_Div_resmode
(
irn
));
assert
(
key
.
u
.
intVal
==
get_Div_no_remainder
(
irn
));
break
;
case
iro_Mod
:
assert
(
key
.
mode
==
get_Mod_resmode
(
irn
));
break
;
case
iro_Block
:
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
assert
(
key
.
u
.
block
==
irn
);
break
;
case
iro_Load
:
assert
(
key
.
mode
==
get_Load_mode
(
irn
));
break
;
case
iro_Builtin
:
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
assert
(
key
.
u
.
intVal
==
(
int
)
get_Builtin_kind
(
irn
));
break
;
default:
assert
(
key
.
mode
==
get_irn_mode
(
irn
));
break
;
}
}
...
...
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