[llvm] r310275 - AMDGPU: Remove redundant opt level check
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 11:12:49 PDT 2017
Author: arsenm
Date: Mon Aug 7 11:12:48 2017
New Revision: 310275
URL: http://llvm.org/viewvc/llvm-project?rev=310275&view=rev
Log:
AMDGPU: Remove redundant opt level check
addOptimizedRegAlloc isn't used for -O0 already.
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp?rev=310275&r1=310274&r2=310275&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp Mon Aug 7 11:12:48 2017
@@ -799,8 +799,7 @@ void GCNPassConfig::addFastRegAlloc(Func
}
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
More information about the llvm-commits
mailing list