[PATCH] D64929: Don't update NoTrappingFPMath and FPDenormalMode in resetTargetOptions

Oliver Stannard (Linaro) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 03:38:14 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL366562: Don't update NoTrappingFPMath and FPDenormalMode in resetTargetOptions (authored by ostannard, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D64929?vs=210596&id=210795#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64929/new/

https://reviews.llvm.org/D64929

Files:
  llvm/trunk/lib/Target/TargetMachine.cpp
  llvm/trunk/test/CodeGen/ARM/build-attributes-fn-attr6.ll


Index: llvm/trunk/lib/Target/TargetMachine.cpp
===================================================================
--- llvm/trunk/lib/Target/TargetMachine.cpp
+++ llvm/trunk/lib/Target/TargetMachine.cpp
@@ -63,18 +63,6 @@
   RESET_OPTION(NoInfsFPMath, "no-infs-fp-math");
   RESET_OPTION(NoNaNsFPMath, "no-nans-fp-math");
   RESET_OPTION(NoSignedZerosFPMath, "no-signed-zeros-fp-math");
-  RESET_OPTION(NoTrappingFPMath, "no-trapping-math");
-
-  StringRef Denormal =
-    F.getFnAttribute("denormal-fp-math").getValueAsString();
-  if (Denormal == "ieee")
-    Options.FPDenormalMode = FPDenormal::IEEE;
-  else if (Denormal == "preserve-sign")
-    Options.FPDenormalMode = FPDenormal::PreserveSign;
-  else if (Denormal == "positive-zero")
-    Options.FPDenormalMode = FPDenormal::PositiveZero;
-  else
-    Options.FPDenormalMode = DefaultOptions.FPDenormalMode;
 }
 
 /// Returns the code generation relocation model. The choices are static, PIC,
Index: llvm/trunk/test/CodeGen/ARM/build-attributes-fn-attr6.ll
===================================================================
--- llvm/trunk/test/CodeGen/ARM/build-attributes-fn-attr6.ll
+++ llvm/trunk/test/CodeGen/ARM/build-attributes-fn-attr6.ll
@@ -5,6 +5,7 @@
 ; functions have inconsistent values, and that a default is returned. 
 
 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15  | FileCheck %s
+; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a15 -enable-ipra | FileCheck %s
 
 ; CHECK: .eabi_attribute 20, 1
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64929.210795.patch
Type: text/x-patch
Size: 1503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190719/cc969ac6/attachment.bin>


More information about the llvm-commits mailing list