diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-05-30 23:31:36 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-05-30 23:31:36 +0000 |
commit | 18659f84b2c284085768bfbf73bc82185707d2f4 (patch) | |
tree | d540ca344eef752d5d9930cd6535ee263bca1bc0 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | d556095135cf5d4b952b96e4fe7635791b67c2c8 (diff) | |
download | bcm5719-llvm-18659f84b2c284085768bfbf73bc82185707d2f4.tar.gz bcm5719-llvm-18659f84b2c284085768bfbf73bc82185707d2f4.zip |
MISched: Fix -misched-regpressure=0 if subreg liveness enabled
Test is waiting on fixing several more crashes in the AMDGPU scheduler
implementation with this.
llvm-svn: 362174
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 0e7974133e4..92c051d5c46 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -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. |