Skip to content

Set branchesOut effect for call.without.effects#8695

Open
stevenfontanella wants to merge 1 commit into
expression-effectsfrom
call-without-effects
Open

Set branchesOut effect for call.without.effects#8695
stevenfontanella wants to merge 1 commit into
expression-effectsfrom
call-without-effects

Conversation

@stevenfontanella
Copy link
Copy Markdown
Member

Fix for #8693

@stevenfontanella stevenfontanella marked this pull request as ready for review May 12, 2026 21:21
@stevenfontanella stevenfontanella requested a review from a team as a code owner May 12, 2026 21:21
@stevenfontanella stevenfontanella requested review from kripken and removed request for a team May 12, 2026 21:21
Comment thread src/ir/effects.h

void visitCall(Call* curr) {
if (Intrinsics(parent.module).isCallWithoutEffects(curr)) {
if (curr->isReturn) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (curr->isReturn) {
// The only effect this can have is to branch (which is an effect of the return, not the call).
if (curr->isReturn) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This explains why we special-case it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants