Skip to content

Commit 7b50987

Browse files
committed
[CodeGen] Use TargetLowering for TypeInfo of PointerTy
This uses the TargetLowering getSimpleValueType mechanism to retrieve the ValueType info and work around a build issue we were seeing for the miniQMC application after #92671.
1 parent a487616 commit 7b50987

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/X86/X86TargetTransformInfo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6257,7 +6257,8 @@ InstructionCost X86TTIImpl::getInterleavedMemoryOpCostAVX512(
62576257
AddressSpace, CostKind);
62586258

62596259
unsigned VF = VecTy->getNumElements() / Factor;
6260-
MVT VT = MVT::getVectorVT(MVT::getVT(VecTy->getScalarType()), VF);
6260+
MVT VT =
6261+
MVT::getVectorVT(TLI->getSimpleValueType(DL, VecTy->getScalarType()), VF);
62616262

62626263
InstructionCost MaskCost;
62636264
if (UseMaskedMemOp) {

0 commit comments

Comments
 (0)