ir_instr *in;
if (!ir_check_unreachable(self))
return false;
+
self->final = true;
+
+ /* can eliminate the return instructions for accumulation */
+ if (self->owner->flags & IR_FLAG_ACCUMULATE)
+ return true;
+
self->is_return = true;
in = ir_instr_new(ctx, self, INSTR_RETURN);
if (!in)