Skip to content

Commit 1f5829d

Browse files
committed
Revert "[AMDGPU] Legalize vectorization of v2i8"
This reverts commit bd41cd5. Out of tree code and breaks the build
1 parent e020e09 commit 1f5829d

File tree

2 files changed

+1
-141
lines changed

2 files changed

+1
-141
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ unsigned GCNTTIImpl::getNumberOfParts(Type *Tp) {
324324
if (ST->shouldCoerceIllegalTypes() &&
325325
DL.getTypeSizeInBits(VTy->getElementType()) == 8) {
326326
unsigned ElCount = VTy->getElementCount().getFixedValue();
327-
return std::max(1ul, PowerOf2Ceil(ElCount / 4));
327+
return PowerOf2Ceil(ElCount / 4);
328328
}
329329
}
330330

llvm/test/Transforms/LoopVectorize/AMDGPU/assert-vplan-cost-model.ll

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

0 commit comments

Comments
 (0)