[AMDGPU] Do not run scalar optimization passes at "-O0"

Differential Revision: https://reviews.llvm.org/D25055

llvm-svn: 282873
This commit is contained in:
Konstantin Zhuravlyov 2016-09-30 16:39:24 +00:00
parent 2af93490fb
commit 4658e5f7b0
1 changed files with 2 additions and 2 deletions

View File

@ -395,9 +395,9 @@ void AMDGPUPassConfig::addIRPasses() {
if (EnableSROA)
addPass(createSROAPass());
}
addStraightLineScalarOptimizationPasses();
}
TargetPassConfig::addIRPasses();