From b09bd74da8c1d5741d573c2bf2cb4e2de45d7d17 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 21 Aug 2017 09:52:08 +0000 Subject: [GPGPU] Add llvm.powi to the libdevice supported functions These intrinsics are used in COSMO. llvm-svn: 311324 --- polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp') diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 6e7ef9cc1766..aa4886dc0703 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -1406,7 +1406,7 @@ static bool isValidFunctionInKernel(llvm::Function *F, bool AllowLibDevice) { return F->isIntrinsic() && (Name.startswith("llvm.sqrt") || Name.startswith("llvm.fabs") || - Name.startswith("llvm.copysign")); + Name.startswith("llvm.copysign") || Name.startswith("llvm.powi")); } /// Do not take `Function` as a subtree value. -- cgit v1.2.3