summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beprefalloc.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-02-13 20:12:35 +0100
committerMatthias Braun <matze@braunis.de>2016-02-13 20:47:39 +0100
commit206f8441e918c355160fd80c783d37f8a7e88be0 (patch)
tree55ceb89203cd5148f7f4da7ee7960c64477ff078 /ir/be/beprefalloc.c
parent8c9e32f417e25eadf7ae846e494a550506f8aee9 (diff)
Rename is_po2() to is_po2_or_zero()
The function also returns true for zero even though that is not a power of two.
Diffstat (limited to 'ir/be/beprefalloc.c')
-rw-r--r--ir/be/beprefalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/beprefalloc.c b/ir/be/beprefalloc.c
index ff7be66..81aa0b9 100644
--- a/ir/be/beprefalloc.c
+++ b/ir/be/beprefalloc.c
@@ -1085,7 +1085,7 @@ static void solve_lpp(ir_nodeset_t *live_nodes, ir_node *node,
static bool is_aligned(unsigned num, unsigned alignment)
{
unsigned mask = alignment-1;
- assert(is_po2(alignment));
+ assert(is_po2_or_zero(alignment));
return (num&mask) == 0;
}