[WebAssembly] Set the HasFloatingPointExceptions flag for WebAssembly.
llvm-svn: 241302
This commit is contained in:
parent
d0212cd46c
commit
bfaf7e15d1
|
@ -34,7 +34,11 @@ using namespace llvm;
|
||||||
|
|
||||||
WebAssemblyTargetLowering::WebAssemblyTargetLowering(
|
WebAssemblyTargetLowering::WebAssemblyTargetLowering(
|
||||||
const TargetMachine &TM, const WebAssemblySubtarget &STI)
|
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.
|
// WebAssembly Lowering private implementation.
|
||||||
|
|
Loading…
Reference in New Issue