<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/133751>133751</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
SLPVectorizer: "Reshuffling scalars not yet supported for nodes with padding" assert
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aeubanks
</td>
</tr>
</table>
<pre>
```
$ cat /tmp/a.ll
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-grtev4-linux-gnu"
define void @gsl_matrix_long_double_minmax_index() {
entry:
br i1 false, label %cleanup22, label %for.cond6.preheader.us.preheader
for.cond6.preheader.us.preheader: ; preds = %entry
%cmp14.us = fcmp ogt x86_fp80 0xK00000000000000000000, 0xK00000000000000000000
%imax.2.us = select i1 %cmp14.us, i64 0, i64 0
%jmax.2.us = select i1 %cmp14.us, i64 0, i64 0
%cmp13.us = fcmp olt x86_fp80 0xK00000000000000000000, 0xK00000000000000000000
%imin.2.us = select i1 %cmp13.us, i64 0, i64 0
%jmin.2.us = select i1 %cmp13.us, i64 0, i64 0
br label %cleanup22
cleanup22: ; preds = %for.cond6.preheader.us.preheader, %entry
%storemerge64 = phi i64 [ 0, %entry ], [ %imin.2.us, %for.cond6.preheader.us.preheader ]
%storemerge63 = phi i64 [ 0, %entry ], [ %jmin.2.us, %for.cond6.preheader.us.preheader ]
%storemerge62 = phi i64 [ 0, %entry ], [ %imax.2.us, %for.cond6.preheader.us.preheader ]
%storemerge = phi i64 [ 0, %entry ], [ %jmax.2.us, %for.cond6.preheader.us.preheader ]
ret void
}
$ opt -p slp-vectorizer /tmp/a.ll -disable-output
opt: ../../llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:3714: TreeEntry *llvm::slpvectorizer::BoUpSLP::newTreeEntry(ArrayRef<Value *>, TreeEntry::EntryState, ScheduleBundle &, const InstructionsState &, const EdgeInfo &, ArrayRef<int>, ArrayRef<unsigned int>): Assertion `(hasFullVectorsOrPowerOf2(*TTI,
getValueType(VL.front()), VL.size()) || ReuseShuffleIndices.empty()) && "Reshuffling scalars not yet supported for nodes with padding"' failed.
```
@alexey-bataev
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVktv2zgQ_jX0hZAgkXrYBx_kpAaCDdCiyeYa0OJIZpYiCT4Se3_9grRd22i33aRrCDJnOI9vqE8zYs6JUQEsUb1C9e2MBb_VdskgbJj6y802mu-XqCmOV9EhUuGeeYzI2k8GkTXLpURF55kdwWPOPJNsr4PHiN5iRAhkE6IdZIa0BaIdJekWxfJajKumSrdMfFuUZI5oV5J5NsyL40olVXNyb6rsIZoRcsbhrTASThh28-a5qbLRenitMilU2GWjCgcPVHQcBqEAv2rBMaqK0cnniXkrds9Sq_GZ67CR8DwJNbHds1AcdijmW2DUrlDRgfJ2j2iMhPHGYlHigUkHiNxgyTYgMSJ1L4GpYAi50g7a5r1WvMmNhS0wDjYP7iwc8P3SinYY0RU2Frg7Fl0fUEVIMftkyioPh82hnwzWo8fxXAYzL3Cx-6P4wS9C_betY2AxsV1OTpEdSOh9PICLnDGKaCpcnBdH55ePOh8N6HVF8n-qSKifgKI_A_XyUd9Imx9QJT39s0g7_B9_37HhlxQiN9-RxnltYQI7QlOlOGYrEmRUrw74Tx4Y1bdJrldXR3i0-VXy5P59UvqupC8fTHqdk7yz0COBf6vQd5b5wZQWfOpwkVTt7bGVa-NxZrCTJnuF3msr_o4ul80dZ1w4tpGQ6eBN8KjotPGRi3mOyDrdpHyd4p_YILJ-tEy5QdvJIbJ-OkVFZP1w_-WbaPPemNjB2zK2evxoAT4dyiVdCkc7RDsnzRnXQbXSf5qH-y8HQcHbN09E5p21bP8VBkRvnpgMEIMh-ike1dksOablg2c-demHfgs8SFgFxePYIE3U9lo5j--U8zb0XmjlksP19ic-wp0a9El7AUEof0x-oQw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