From: Dan Gohman Date: Tue, 7 Jul 2015 22:38:06 +0000 (+0000) Subject: [WebAssembly] Set the scheduling preference. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ef6f1e24baa4fd9f2ff1ae04799a6d8b5a6f320;p=oota-llvm.git [WebAssembly] Set the scheduling preference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241637 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index 4eec02efbd9..4184eb6dc5a 100644 --- a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -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); } //===----------------------------------------------------------------------===//