[llvm] r241637 - [WebAssembly] Set the scheduling preference.

Dan Gohman dan433584 at gmail.com
Tue Jul 7 15:38:07 PDT 2015


Author: djg
Date: Tue Jul  7 17:38:06 2015
New Revision: 241637

URL: http://llvm.org/viewvc/llvm-project?rev=241637&view=rev
Log:
[WebAssembly] Set the scheduling preference.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=241637&r1=241636&r2=241637&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Tue Jul  7 17:38:06 2015
@@ -38,6 +38,8 @@ WebAssemblyTargetLowering::WebAssemblyTa
   // 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);
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list