Revert r28379.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 16 Feb 2011 20:56:43 +0000 (20:56 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 16 Feb 2011 20:56:43 +0000 (20:56 +0000)
All leaders of a partition must have the same opcode, which is the pair
of <irn_opcode, ir_mode> in Firm.

[r28384]

ir/opt/combo.c

index 5d76637..47c216a 100644 (file)
@@ -307,6 +307,7 @@ 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)) {