Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
154104ce
Commit
154104ce
authored
Feb 24, 2011
by
Michael Beck
Browse files
Simplified the code and fixed a comment.
No functional change. [r28460]
parent
46ff700c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/combo.c
View file @
154104ce
...
...
@@ -253,7 +253,7 @@ static int cmp_irn_opcode(const ir_node *a, const ir_node *b)
}
/*
* here, we already now that the nodes are identical except their
* here, we already
k
now that the nodes are identical except their
* attributes
*/
if
(
a
->
op
->
ops
.
node_cmp_attr
)
...
...
@@ -292,15 +292,13 @@ static void check_partition(const partition_t *T)
static
void
check_opcode
(
const
partition_t
*
Z
)
{
node_t
*
node
;
const
ir_node
*
repr
;
int
first
=
1
;
const
ir_node
*
repr
=
NULL
;
list_for_each_entry
(
node_t
,
node
,
&
Z
->
Leader
,
node_list
)
{
ir_node
*
irn
=
node
->
node
;
if
(
first
)
{
repr
=
irn
;
first
=
0
;
if
(
repr
==
NULL
)
{
repr
=
irn
;
}
else
{
assert
(
cmp_irn_opcode
(
repr
,
irn
)
==
0
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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