[llvm] 58297e4 - LowerMatrixIntrinsics: Avoid use of deprecated CreateCall methods

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 15:27:09 PST 2020


Author: Nicolai Hähnle
Date: 2020-02-18T00:24:09+01:00
New Revision: 58297e4d8f1ff70fedd1391366e58628be7941bc

URL: https://github.com/llvm/llvm-project/commit/58297e4d8f1ff70fedd1391366e58628be7941bc
DIFF: https://github.com/llvm/llvm-project/commit/58297e4d8f1ff70fedd1391366e58628be7941bc.diff

LOG: LowerMatrixIntrinsics: Avoid use of deprecated CreateCall methods

Reviewers: t.p.northover

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74675

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
index 5cfcb45e4bca..87b3ef89da35 100644
--- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -742,7 +742,7 @@ class LowerMatrixIntrinsics {
       if (AllowContraction) {
         // Use fmuladd for floating point operations and let the backend decide
         // if that's profitable.
-        Value *FMulAdd = Intrinsic::getDeclaration(
+        Function *FMulAdd = Intrinsic::getDeclaration(
             Func.getParent(), Intrinsic::fmuladd, A->getType());
         return Builder.CreateCall(FMulAdd, {A, B, Sum});
       }


        


More information about the llvm-commits mailing list