From: Matt Arsenault Date: Mon, 7 Aug 2017 18:12:48 +0000 (+0000) Subject: AMDGPU: Remove redundant opt level check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1b4625e0b2c9145f2804a4d804c113a153a4925;p=llvm AMDGPU: Remove redundant opt level check addOptimizedRegAlloc isn't used for -O0 already. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310275 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp index 53e8255dab7..0511bb19b8a 100644 --- a/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp +++ b/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