diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp index 53e8255dab7..0511bb19b8a 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp @@ -799,8 +799,7 @@ void GCNPassConfig::addFastRegAlloc(FunctionPass *RegAllocPass) { } void GCNPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) { - if (getOptLevel() > CodeGenOpt::None) - insertPass(&MachineSchedulerID, &SIOptimizeExecMaskingPreRAID); + insertPass(&MachineSchedulerID, &SIOptimizeExecMaskingPreRAID); // This must be run immediately after phi elimination and before // TwoAddressInstructions, otherwise the processing of the tied operand of |