aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-04-16 19:40:49 +0000
committerDuncan Sands <baldrick@free.fr>2012-04-16 19:40:49 +0000
commit3c6ed1b5c50de8ab9375e59fd68ea2a9e5ae8c30 (patch)
tree7b5286d5c33f1472ad9e66bc9ce7969b608e3839
parent2850376184b7e7aa81b5034ba44b001f8c55e07a (diff)
Remove support for -fast-math metadata for the moment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154851 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp4
-rw-r--r--test/CodeGen/2012-04-16-FastMath.c8
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index f4b483b515..2939062c9b 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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/test/CodeGen/2012-04-16-FastMath.c b/test/CodeGen/2012-04-16-FastMath.c
deleted file mode 100644
index d7c3d9a2d6..0000000000
--- a/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"}