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.