llvm-project
llvm-project copied to clipboard
DAG combiner asserts due to extend in-register size mismatch for shufflevector
| Bugzilla Link | 33743 |
| Resolution | FIXED |
| Resolved on | Nov 18, 2017 15:59 |
| Version | trunk |
| OS | All |
| Attachments | Reproducer for shufflevec issue in DAGCombine |
| CC | @RKSimon,@arsenm |
| Fixed by commit(s) | 315307 |
Extended Description
This issue has been seen when compiling for the AMDGPU backend
llc -march=amdgcn shufflevec-dagcombine-issue.ll
This results in the following assert:
Assertion failed: VT.getSizeInBits() == Op.getValueSizeInBits() && "The sizes of the input and result must match in order to perform the " "extend in-register.", file ~\llvm\lib\CodeGen\SelectionDAG\SelectionDAG.cpp, line 1012
This looks like an issue in combineShuffleToVectorExtend
rL315307
I've got a potential fix for this issue
See https://reviews.llvm.org/D35241