diff options
author | Evandro Menezes <e.menezes@samsung.com> | 2018-08-22 23:18:02 +0000 |
---|---|---|
committer | Evandro Menezes <e.menezes@samsung.com> | 2018-08-22 23:18:02 +0000 |
commit | 6acbe30ee1e53e9b129d9f6a8455eec27bed7951 (patch) | |
tree | 313958e5df1bedd7eccc71e29b1edee3575eabee | |
parent | baa78cc6d3746e9d8c4627baa03e20ebcfadbc21 (diff) | |
download | bcm5719-llvm-6acbe30ee1e53e9b129d9f6a8455eec27bed7951.tar.gz bcm5719-llvm-6acbe30ee1e53e9b129d9f6a8455eec27bed7951.zip |
[NFC] Refactor simplification of pow()
llvm-svn: 340476
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp index c9c43091ad3..28c726ce2b9 100644 --- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -1244,7 +1244,7 @@ Value *LibCallSimplifier::replacePowWithSqrt(CallInst *Pow, IRBuilder<> &B) { return nullptr; // If errno is never set, then use the intrinsic for sqrt(). - if (Pow->hasFnAttr(Attribute::ReadNone)) { + if (Pow->doesNotAccessMemory()) { Function *SqrtFn = Intrinsic::getDeclaration(Pow->getModule(), Intrinsic::sqrt, Ty); Sqrt = B.CreateCall(SqrtFn, Base, "sqrt"); |