Commit c5a1cfe5 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Assert monotonicity in set_bitinfo().

parent d5358b95
......@@ -25,6 +25,7 @@
*/
#include "config.h"
#include <assert.h>
#include <stdbool.h>
#include "adt/pdeq.h"
......@@ -151,6 +152,10 @@ static int set_bitinfo(ir_node* const irn, ir_tarval* const z, ir_tarval* const
set_irn_link(irn, b);
} else if (z == b->z && o == b->o) {
return 0;
} else {
/* Assert monotonicity. */
assert(tarval_is_null(tarval_andnot(b->z, z)));
assert(tarval_is_null(tarval_andnot(o, b->o)));
}
b->z = z;
b->o = o;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment