Open Hardcode84 opened 7 months ago
@Hardcode84 I am looking at this issue. I am confused about %lhs. It does not appear to be used. Where is this mlir code coming from?
Secondly, I reduced the tensor dimensions to find a smaller example that demonstrates the fail. When I rescaled from 2048 to 128 (and accordingly the other dimensions) the compile finished and a vmfb file was created. With the slightly larger 2048->144 scaling the error still showed up.
%lhs
is probably result of copypaste from another test, you can remove it, it shouldn't affect the reproducer. Also expect_almost_eq_const
value is arbitrary, I've only added it here to prevent DCE.
What happened?
The following code freezes
iree-compile
for multiple minutes, generating huge dump with--mlir-print-ir-after-all
and eventually fails to compile:Steps to reproduce your issue
iree-compile --iree-hal-target-backends=vulkan-spirv test-reduction.mlir --mlir-print-ir-after-all --iree-vulkan-target-triple=rdna3-unknown-unknown -o test.vmfb > out.txt 2>&1
What component(s) does this issue relate to?
No response
Version information
bb7e536ecd31ea24007aa7202f3a0c41b897e05c
Additional context
SPIRVInitialVectorLowering
pass causes IR explosion with a lot of repeated lines: