llvm-project
f06918d4 - [DAGCombiner][NVPTX] Avoid forming illegal-typed shuffles after type-legalization (#205056)

Commit
30 days ago
[DAGCombiner][NVPTX] Avoid forming illegal-typed shuffles after type-legalization (#205056) Currently, `combineInsertEltToShuffle` could create a shuffle of an illegal type after type legalization, which when reaches the operation legalizer, asserts ("Unexpected illegal type!"). https://github.com/llvm/llvm-project/pull/198259 fixed a crash resulting from this in NVPTX but resulted in regressions with some types due to the check blocking pre-type-legalization folds in addition to the illegal post-type-legalization shuffle. This change removes the TTI override in NVPTX and adds a guard in the `combineInsertEltToShuffle` pattern to avoid forming illegal-typed shuffles after type legalization.
Author
Parents
Loading