Skip to content

Commit 64fb91b

Browse files
committed
Revert "[SLP]Fix a check for the whole register use"
breaks build of rocTHRUST This reverts commit bfd8cc0.
1 parent 97fcc51 commit 64fb91b

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8854,8 +8854,7 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
88548854
// FIXME: Reshuffing scalars is not supported yet for non-power-of-2 ops.
88558855
if ((UserTreeIdx.UserTE &&
88568856
UserTreeIdx.UserTE->hasNonWholeRegisterOrNonPowerOf2Vec(*TTI)) ||
8857-
!hasFullVectorsOrPowerOf2(*TTI, getValueType(VL.front()),
8858-
VL.size())) {
8857+
!hasFullVectorsOrPowerOf2(*TTI, VL.front()->getType(), VL.size())) {
88598858
LLVM_DEBUG(dbgs() << "SLP: Reshuffling scalars not yet supported "
88608859
"for nodes with padding.\n");
88618860
auto Invalid = ScheduleBundle::invalid();

llvm/test/Transforms/SLPVectorizer/X86/cmp-values-non-full-registers.ll

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)