[llvm] r362174 - MISched: Fix -misched-regpressure=0 if subreg liveness enabled

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 16:31:37 PDT 2019


Author: arsenm
Date: Thu May 30 16:31:36 2019
New Revision: 362174

URL: http://llvm.org/viewvc/llvm-project?rev=362174&view=rev
Log:
MISched: Fix -misched-regpressure=0 if subreg liveness enabled

Test is waiting on fixing several more crashes in the AMDGPU scheduler
implementation with this.

Modified:
    llvm/trunk/lib/CodeGen/MachineScheduler.cpp

Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=362174&r1=362173&r2=362174&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Thu May 30 16:31:36 2019
@@ -2761,8 +2761,10 @@ void GenericScheduler::initPolicy(Machin
   MF.getSubtarget().overrideSchedPolicy(RegionPolicy, NumRegionInstrs);
 
   // After subtarget overrides, apply command line options.
-  if (!EnableRegPressure)
+  if (!EnableRegPressure) {
     RegionPolicy.ShouldTrackPressure = false;
+    RegionPolicy.ShouldTrackLaneMasks = false;
+  }
 
   // Check -misched-topdown/bottomup can force or unforce scheduling direction.
   // e.g. -misched-bottomup=false allows scheduling in both directions.




More information about the llvm-commits mailing list