[PATCH] D61702: MISched: Fix -misched-regpressure=0 if subreg liveness enabled

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 14:30:33 PDT 2019


arsenm created this revision.
Herald added subscribers: javed.absar, tpr, wdng, MatzeB.

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


https://reviews.llvm.org/D61702

Files:
  lib/CodeGen/MachineScheduler.cpp


Index: lib/CodeGen/MachineScheduler.cpp
===================================================================
--- lib/CodeGen/MachineScheduler.cpp
+++ lib/CodeGen/MachineScheduler.cpp
@@ -2723,8 +2723,10 @@
   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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61702.198729.patch
Type: text/x-patch
Size: 653 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190508/57534194/attachment.bin>


More information about the llvm-commits mailing list