llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

DAG combiner asserts due to extend in-register size mismatch for shufflevector

Open dstutt opened this issue 9 years ago • 2 comments

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

dstutt avatar Jul 11 '17 10:07 dstutt

rL315307

RKSimon avatar Nov 18 '17 23:11 RKSimon

I've got a potential fix for this issue

See https://reviews.llvm.org/D35241

dstutt avatar Jul 11 '17 10:07 dstutt