[mlir][spirv][cf] legalize block arguments when convert cf to spirv (#71288)
commitc8bc72dc79eec511d76c741fe6b6334355903dbe
authorXiang Li <python3kgae@outlook.com>
Sun, 5 Nov 2023 03:48:59 +0000 (4 23:48 -0400)
committerGitHub <noreply@github.com>
Sun, 5 Nov 2023 03:48:59 +0000 (4 23:48 -0400)
tree2b8b8f5a9920cf9c903f08befd9451bdde98d3b3
parent437c62178c78deb2eefa32235ef93724141b15bb
[mlir][spirv][cf] legalize block arguments when convert cf to spirv (#71288)

When converting branches, legalize target block arguments first.

Fixes llvm#70813
mlir/lib/Conversion/ControlFlowToSPIRV/ControlFlowToSPIRV.cpp
mlir/test/Conversion/ControlFlowToSPIRV/cf-ops-to-spirv.mlir