[llvm] r241302 - [WebAssembly] Set the HasFloatingPointExceptions flag for WebAssembly.
Dan Gohman
dan433584 at gmail.com
Thu Jul 2 14:36:25 PDT 2015
Author: djg
Date: Thu Jul 2 16:36:25 2015
New Revision: 241302
URL: http://llvm.org/viewvc/llvm-project?rev=241302&view=rev
Log:
[WebAssembly] Set the HasFloatingPointExceptions flag for WebAssembly.
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=241302&r1=241301&r2=241302&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Thu Jul 2 16:36:25 2015
@@ -34,7 +34,11 @@ using namespace llvm;
WebAssemblyTargetLowering::WebAssemblyTargetLowering(
const TargetMachine &TM, const WebAssemblySubtarget &STI)
- : TargetLowering(TM), Subtarget(&STI) {}
+ : TargetLowering(TM), Subtarget(&STI) {
+ // WebAssembly does not produce floating-point exceptions on normal floating
+ // point operations.
+ setHasFloatingPointExceptions(false);
+}
//===----------------------------------------------------------------------===//
// WebAssembly Lowering private implementation.
More information about the llvm-commits
mailing list