| Issue |
239134
|
| Summary |
[CodeGen] [RISC-V] llc crashes on scalable vector `llvm.powi`: "Cannot unroll scalable vector!"
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
zqb-all
|
`llvm.powi` (and `llvm.experimental.constrained.powi`) with a scalable vector first argument reaches `SelectionDAG::UnrollVectorOp`, which cannot handle scalable vectors. The result is a hard `LLVM ERROR`.
It reproduces on both `release/23.x` and current `main`.
- `release/23.x`: `LLVM ERROR: Possible incorrect use of EVT::getVectorNumElements() for scalable vector.`
- https://godbolt.org/z/PK8jfjPKT
- `main`: `LLVM ERROR: Cannot unroll scalable vector!`
- https://godbolt.org/z/7WfodTcYs
This was found while building SPEC CPU2017 `638.imagick_s` with `-O3 -ffast-math -flto` plus PGO for `riscv64` / `spacemit-x100`.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs