Skip to content

Commit

Permalink
If conversion should not convert PHI nodes (dotnet#77886)
Browse files Browse the repository at this point in the history
  • Loading branch information
a74nh committed Nov 4, 2022
1 parent a1ec5e2 commit 4214438
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/jit/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4762,6 +4762,12 @@ bool Compiler::optIfConvert(BasicBlock* block)
return false;
}

// Ensure the source isn't a phi.
if (op2->OperIs(GT_PHI))
{
return false;
}

asgNode = tree;
asgStmt = stmt;
asgBlock = middleBlock;
Expand Down

0 comments on commit 4214438

Please sign in to comment.