[SimplifyLibCalls] Drop default template args. No functional change.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 16 Aug 2015 21:16:37 +0000 (21:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 16 Aug 2015 21:16:37 +0000 (21:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245189 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyLibCalls.cpp

index 505136420163315cbeb68eb1e6721e7b70d69576..46b554b0341b435fba2795124beb9b256561acf6 100644 (file)
@@ -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.
   // 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");
   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).
         // 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.
         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.