AMDGPU: Don't optimize exec masks at -O0

llvm-svn: 347573
This commit is contained in:
Matt Arsenault 2018-11-26 17:02:02 +00:00
parent 6384d9ea31
commit 105fc1a5f3
1 changed files with 2 additions and 1 deletions

View File

@ -880,7 +880,8 @@ void GCNPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
void GCNPassConfig::addPostRegAlloc() {
addPass(&SIFixVGPRCopiesID);
addPass(&SIOptimizeExecMaskingID);
if (getOptLevel() > CodeGenOpt::None)
addPass(&SIOptimizeExecMaskingID);
TargetPassConfig::addPostRegAlloc();
}