[cfe-commits] r154851 - in /cfe/trunk: lib/CodeGen/CodeGenFunction.cpp test/CodeGen/2012-04-16-FastMath.c

Duncan Sands baldrick at free.fr
Mon Apr 16 12:40:49 PDT 2012


Author: baldrick
Date: Mon Apr 16 14:40:49 2012
New Revision: 154851

URL: http://llvm.org/viewvc/llvm-project?rev=154851&view=rev
Log:
Remove support for -fast-math metadata for the moment.

Removed:
    cfe/trunk/test/CodeGen/2012-04-16-FastMath.c
Modified:
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=154851&r1=154850&r2=154851&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Mon Apr 16 14:40:49 2012
@@ -42,10 +42,6 @@
     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();
 }
 

Removed: cfe/trunk/test/CodeGen/2012-04-16-FastMath.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2012-04-16-FastMath.c?rev=154850&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2012-04-16-FastMath.c (original)
+++ cfe/trunk/test/CodeGen/2012-04-16-FastMath.c (removed)
@@ -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"}





More information about the cfe-commits mailing list