Skip to content

Commit dec2420

Browse files
committed
refresh nvptx
1 parent 81865ad commit dec2420

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,8 @@ Value *NVPTXTTIImpl::rewriteIntrinsicWithAddressSpace(IntrinsicInst *II,
590590
}
591591
case Intrinsic::nvvm_prefetch_tensormap: {
592592
IRBuilder<> Builder(II);
593-
Module *M = II->getModule();
594-
Function *NewIntrinsic = Intrinsic::getDeclaration(
595-
M, Intrinsic::nvvm_prefetch_tensormap, {NewV->getType()});
596-
CallInst *NewCall = Builder.CreateCall(NewIntrinsic, {NewV});
597-
NewCall->setAttributes(II->getAttributes());
598-
return NewCall;
593+
return Builder.CreateUnaryIntrinsic(Intrinsic::nvvm_prefetch_tensormap,
594+
NewV);
599595
}
600596
}
601597
return nullptr;

0 commit comments

Comments
 (0)