@@ -122,9 +122,8 @@ void ModuleShaderFlags::updateFunctionFlags(ComputedShaderFlags &CSF,
122122
123123 // Set ResMayNotAlias if DXIL version >= 1.8 and function uses UAVs
124124 if (!CSF.ResMayNotAlias && CanSetResMayNotAlias &&
125- MMDI.DXILVersion >= VersionTuple (1 , 8 ) && RTI.isUAV ()) {
125+ MMDI.DXILVersion >= VersionTuple (1 , 8 ) && RTI.isUAV ())
126126 CSF.ResMayNotAlias = true ;
127- }
128127
129128 switch (RTI.getResourceKind ()) {
130129 case dxil::ResourceKind::StructuredBuffer:
@@ -169,10 +168,9 @@ void ModuleShaderFlags::initialize(Module &M, DXILResourceTypeMap &DRTM,
169168 // Check if -res-may-alias was provided on the command line.
170169 // The command line option will set the dx.resmayalias module flag to 1.
171170 if (auto *RMA = mdconst::extract_or_null<ConstantInt>(
172- M.getModuleFlag (" dx.resmayalias" ))) {
171+ M.getModuleFlag (" dx.resmayalias" )))
173172 if (RMA->getValue () != 0 )
174173 CanSetResMayNotAlias = false ;
175- }
176174
177175 CallGraph CG (M);
178176
@@ -200,9 +198,8 @@ void ModuleShaderFlags::initialize(Module &M, DXILResourceTypeMap &DRTM,
200198
201199 // Set ResMayNotAlias to true if DXIL version < 1.8 and there are UAVs
202200 // present globally.
203- if (CanSetResMayNotAlias && MMDI.DXILVersion < VersionTuple (1 , 8 )) {
201+ if (CanSetResMayNotAlias && MMDI.DXILVersion < VersionTuple (1 , 8 ))
204202 SCCSF.ResMayNotAlias = !DBM.uavs ().empty ();
205- }
206203
207204 ComputedShaderFlags CSF;
208205 for (const auto &BB : *F)
0 commit comments