[X86] Lane-permute shuffle lowering can cycle indefinitely during legalization
Open
backend:X86
hang
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
X86 lane-permute shuffle lowering can cause legalization to cycle indefinitely for some vector shuffle masks.
When a generated cross-lane shuffle reproduces the original mask, trying a finer sublane size can produce a decomposition that legalization transforms back into the original shuffle. As a result, `llc` hangs instead of completing code generation.
https://godbolt.org/z/GxW3xKzKb
Contributor guide
Assessment
This issue has not been assessed yet.