diff --git a/ir_fold.h b/ir_fold.h index 26cf321..561f836 100644 --- a/ir_fold.h +++ b/ir_fold.h @@ -1187,6 +1187,14 @@ IR_FOLD(COND(C_FLOAT, _)) } } +IR_FOLD(BITCAST(_)) +{ + if (IR_OPT_TYPE(opt) == op1_insn->type) { + IR_FOLD_COPY(op1); + } + IR_FOLD_NEXT; +} + /* Algebraic simplifications */ IR_FOLD(ABS(ABS)) {