[WebAssembly] Set the scheduling preference.

llvm-svn: 241637
This commit is contained in:
Dan Gohman 2015-07-07 22:38:06 +00:00
parent fd497eddd3
commit 489abd7046
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
// WebAssembly does not produce floating-point exceptions on normal floating
// point operations.
setHasFloatingPointExceptions(false);
// We don't know the microarchitecture here, so just reduce register pressure.
setSchedulingPreference(Sched::RegPressure);
}
//===----------------------------------------------------------------------===//