mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
ac/llvm: Use nir_foreach_phi
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22967>
This commit is contained in:
parent
5a0223a2d4
commit
82430b91bb
1 changed files with 2 additions and 4 deletions
|
|
@ -4845,10 +4845,8 @@ static bool visit_block(struct ac_nir_context *ctx, nir_block *block)
|
|||
LLVMPositionBuilderBefore(ctx->ac.builder, LLVMGetFirstInstruction(blockref));
|
||||
}
|
||||
|
||||
nir_foreach_instr(instr, block) {
|
||||
if (instr->type != nir_instr_type_phi)
|
||||
break;
|
||||
visit_phi(ctx, nir_instr_as_phi(instr));
|
||||
nir_foreach_phi(phi, block) {
|
||||
visit_phi(ctx, phi);
|
||||
}
|
||||
|
||||
LLVMPositionBuilderAtEnd(ctx->ac.builder, blockref);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue