Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few trivial improvements for code readability #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify _ir_LOOP_BEGIN() function
Signed-off-by: Tony Su <[email protected]>
Tony Su committed May 20, 2023
commit 2be7fbc550c56b6584065904a79361b1dab79289
2 changes: 1 addition & 1 deletion ir.c
Original file line number Diff line number Diff line change
@@ -1680,7 +1680,7 @@ void _ir_MERGE_LIST(ir_ctx *ctx, ir_ref list)
ir_ref _ir_LOOP_BEGIN(ir_ctx *ctx, ir_ref src1)
{
IR_ASSERT(!ctx->control);
ctx->control = ir_emit2(ctx, IR_OPTX(IR_LOOP_BEGIN, IR_VOID, 2), src1, IR_UNUSED);
ctx->control = ir_emit1(ctx, IR_OPTX(IR_LOOP_BEGIN, IR_VOID, 2), src1);
return ctx->control;
}