summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
-rw-r--r--clang/test/CodeGen/2012-04-16-FastMath.c8
2 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index f4b483b5158..2939062c9bb 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -42,10 +42,6 @@ CodeGenFunction::CodeGenFunction(CodeGenModule &cgm)
TerminateHandler(0), TrapBB(0) {
CatchUndefined = getContext().getLangOpts().CatchUndefined;
- if (getContext().getLangOpts().FastMath) {
- llvm::MDBuilder MDHelper(Builder.getContext());
- Builder.SetDefaultFPMathTag(MDHelper.createFastFPMath());
- }
CGM.getCXXABI().getMangleContext().startNewFunction();
}
diff --git a/clang/test/CodeGen/2012-04-16-FastMath.c b/clang/test/CodeGen/2012-04-16-FastMath.c
deleted file mode 100644
index d7c3d9a2d63..00000000000
--- a/clang/test/CodeGen/2012-04-16-FastMath.c
+++ /dev/null
@@ -1,8 +0,0 @@
-// RUN: %clang_cc1 %s -ffast-math -emit-llvm -o - | FileCheck %s
-
-double add(double x, double y) {
-// CHECK: @add
- return x + y;
-// CHECK: fadd double %{{.}}, %{{.}}, !fpmath !0
-}
-// CHECK: !0 = metadata !{metadata !"fast"}
OpenPOWER on IntegriCloud