forked from OSchip/llvm-project
AMDGPU: Don't optimize exec masks at -O0
llvm-svn: 347573
This commit is contained in:
parent
6384d9ea31
commit
105fc1a5f3
|
@ -880,7 +880,8 @@ void GCNPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
|
|||
|
||||
void GCNPassConfig::addPostRegAlloc() {
|
||||
addPass(&SIFixVGPRCopiesID);
|
||||
addPass(&SIOptimizeExecMaskingID);
|
||||
if (getOptLevel() > CodeGenOpt::None)
|
||||
addPass(&SIOptimizeExecMaskingID);
|
||||
TargetPassConfig::addPostRegAlloc();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue