diff options
| -rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 12 | ||||
| -rw-r--r-- | llvm/test/CodeGen/ARM/build-attributes-fn-attr6.ll | 1 | 
2 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 634866d9357..9ee71c41bc9 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -63,18 +63,6 @@ void TargetMachine::resetTargetOptions(const Function &F) const {    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, diff --git a/llvm/test/CodeGen/ARM/build-attributes-fn-attr6.ll b/llvm/test/CodeGen/ARM/build-attributes-fn-attr6.ll index 61741c000da..b2f12b984ef 100644 --- a/llvm/test/CodeGen/ARM/build-attributes-fn-attr6.ll +++ b/llvm/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  | 

