Skip to content

Commit 5bd7c7b

Browse files
committed
Don't perform optimization on vector types
1 parent 249ee64 commit 5bd7c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ Value *AMDGPUCodeGenPrepareImpl::applyFractPat(IRBuilder<> &Builder,
19911991

19921992
bool AMDGPUCodeGenPrepareImpl::visitCtpop(IntrinsicInst &I) {
19931993
uint32_t BitWidth, DestinationWidth, IntrinsicWidth;
1994-
if (!I.hasOneUse() ||
1994+
if (!I.hasOneUse() || !I.getType()->isIntegerTy() ||
19951995
!ST.hasBCNT(BitWidth = I.getType()->getIntegerBitWidth()))
19961996
return false;
19971997

0 commit comments

Comments
 (0)