summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-08-21 09:52:08 +0000
committerTobias Grosser <tobias@grosser.es>2017-08-21 09:52:08 +0000
commitb09bd74da8c1d5741d573c2bf2cb4e2de45d7d17 (patch)
tree9bcede94cb217ee8fff253fa5522ed804d1f874a /polly/lib/CodeGen/PPCGCodeGeneration.cpp
parent03c2208d5f0a20681bb3b9adb75bb634fa8b34cc (diff)
downloadbcm5719-llvm-b09bd74da8c1d5741d573c2bf2cb4e2de45d7d17.tar.gz
bcm5719-llvm-b09bd74da8c1d5741d573c2bf2cb4e2de45d7d17.zip
[GPGPU] Add llvm.powi to the libdevice supported functions
These intrinsics are used in COSMO. llvm-svn: 311324
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index 6e7ef9cc176..aa4886dc070 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.
OpenPOWER on IntegriCloud