llvm / llvm/llvm-project

[X86] Lane-permute shuffle lowering can cycle indefinitely during legalization

Open
#224,266 2 comments 0 reactions 1 assignee Claimed by @azwolski View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.