OSDN Git Service

MISched: Fix -misched-regpressure=0 if subreg liveness enabled
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 30 May 2019 23:31:36 +0000 (23:31 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 30 May 2019 23:31:36 +0000 (23:31 +0000)
Test is waiting on fixing several more crashes in the AMDGPU scheduler
implementation with this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362174 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index 0e79741..92c051d 100644 (file)
@@ -2761,8 +2761,10 @@ void GenericScheduler::initPolicy(MachineBasicBlock::iterator Begin,
   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.