From: Dan Gohman Date: Thu, 2 Jul 2015 21:36:25 +0000 (+0000) Subject: [WebAssembly] Set the HasFloatingPointExceptions flag for WebAssembly. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=44bc052f4d866f4e5885a22d23ed9ccef77e30df;p=oota-llvm.git [WebAssembly] Set the HasFloatingPointExceptions flag for WebAssembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241302 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index d569e9c624f..4eec02efbd9 100644 --- a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -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.