Index: lib/Target/AMDGPU/AMDGPUTargetMachine.cpp =================================================================== --- lib/Target/AMDGPU/AMDGPUTargetMachine.cpp +++ lib/Target/AMDGPU/AMDGPUTargetMachine.cpp @@ -393,9 +393,9 @@ if (EnableSROA) addPass(createSROAPass()); - } - addStraightLineScalarOptimizationPasses(); + addStraightLineScalarOptimizationPasses(); + } TargetPassConfig::addIRPasses();