aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/builder.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-21 21:18:50 +0100
committerlemon <lsof@mailbox.org>2025-12-21 21:18:50 +0100
commit6fc94fd3f7edad42e77426153f9933376b621142 (patch)
treeed0978e3676b81077679987af2b30b69df2306ea /ir/builder.c
parent97953ac6f077ef2ed2a59f7b1e2328573981d41e (diff)
simpl: optimize unsigned & signed division by power of 2
Diffstat (limited to 'ir/builder.c')
-rw-r--r--ir/builder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/builder.c b/ir/builder.c
index 8fb626c..951c8f4 100644
--- a/ir/builder.c
+++ b/ir/builder.c
@@ -89,11 +89,11 @@ irbinop(struct function *fn, enum op op, enum irclass k, union ref l, union ref
return ZEROREF;
break;
case Oulte:
- if (l.bits == ZEROREF.bits) /* 0 u<= x ==> f */
+ if (l.bits == ZEROREF.bits) /* 0 u<= x ==> t */
return ONE;
break;
case Ougte:
- if (r.bits == ZEROREF.bits) /* x u>= 0 ==> f */
+ if (r.bits == ZEROREF.bits) /* x u>= 0 ==> t */
return ONE;
break;
default: