[WebAssembly] Set the scheduling preference.
llvm-svn: 241637
This commit is contained in:
parent
fd497eddd3
commit
489abd7046
|
@ -38,6 +38,8 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
|
||||||
// WebAssembly does not produce floating-point exceptions on normal floating
|
// WebAssembly does not produce floating-point exceptions on normal floating
|
||||||
// point operations.
|
// point operations.
|
||||||
setHasFloatingPointExceptions(false);
|
setHasFloatingPointExceptions(false);
|
||||||
|
// We don't know the microarchitecture here, so just reduce register pressure.
|
||||||
|
setSchedulingPreference(Sched::RegPressure);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
Loading…
Reference in New Issue