diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-30 04:09:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-30 04:09:52 +0000 |
commit | 4a2cc6603d09198ec5f447c0775d293167ebfde0 (patch) | |
tree | 56126a1b9de15fc3f80dd9f20e0ea0bd95e4a2bc /llvm/lib/Target/TargetMachine.cpp | |
parent | 30fe4ac2fba16f770cc7f3ee12b97e7c5a8e79fd (diff) | |
download | bcm5719-llvm-4a2cc6603d09198ec5f447c0775d293167ebfde0.tar.gz bcm5719-llvm-4a2cc6603d09198ec5f447c0775d293167ebfde0.zip |
Expose an option allowing unsafe math optimizations. Patch contributed by
Morten Ofstad!
llvm-svn: 21630
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 8e965767ce9..b6bab729763 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -26,6 +26,7 @@ namespace llvm { bool NoFramePointerElim; bool NoExcessFPPrecision; int PatternISelTriState; + bool UnsafeFPMath; }; namespace { cl::opt<bool, true> PrintCode("print-machineinstrs", @@ -46,6 +47,11 @@ namespace { cl::desc("sets the pattern ISel off(0), on(1), default(2)"), cl::location(PatternISelTriState), cl::init(2)); + cl::opt<bool, true> + EnableUnsafeFPMath("enable-unsafe-fp-math", + cl::desc("Enable optimizations that may decrease FP precision"), + cl::location(UnsafeFPMath), + cl::init(false)); }; //--------------------------------------------------------------------------- |