summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-08-16 21:16:37 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-08-16 21:16:37 +0000
commitbb70d751de723894c57f9c3522f4218efba23821 (patch)
tree354b259e0b9be6d0555c30144fdda585864e75ec /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
parentdc1d1cbd826b9265b5150021279f63273f032979 (diff)
downloadbcm5719-llvm-bb70d751de723894c57f9c3522f4218efba23821.tar.gz
bcm5719-llvm-bb70d751de723894c57f9c3522f4218efba23821.zip
[SimplifyLibCalls] Drop default template args. No functional change.
llvm-svn: 245189
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 50513642016..46b554b0341 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -1206,8 +1206,7 @@ Value *LibCallSimplifier::optimizeFMinFMax(CallInst *CI, IRBuilder<> &B) {
// fast-math flag decorations that are applied to FP instructions. For now,
// we have to rely on the function-level attributes to do this optimization
// because there's no other way to express that the calls can be relaxed.
- IRBuilder<true, ConstantFolder,
- IRBuilderDefaultInserter<true> >::FastMathFlagGuard Guard(B);
+ IRBuilder<>::FastMathFlagGuard Guard(B);
FastMathFlags FMF;
Function *F = CI->getParent()->getParent();
Attribute Attr = F->getFnAttribute("unsafe-fp-math");
@@ -1292,8 +1291,7 @@ Value *LibCallSimplifier::optimizeSqrt(CallInst *CI, IRBuilder<> &B) {
// and multiply.
// FIXME: We're not checking the sqrt because it doesn't have
// fast-math-flags (see earlier comment).
- IRBuilder<true, ConstantFolder,
- IRBuilderDefaultInserter<true> >::FastMathFlagGuard Guard(B);
+ IRBuilder<>::FastMathFlagGuard Guard(B);
B.SetFastMathFlags(I->getFastMathFlags());
// If we found a repeated factor, hoist it out of the square root and
// replace it with the fabs of that factor.
OpenPOWER on IntegriCloud