File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,25 +45,24 @@ class DxilConvergentMark : public ModulePass {
4545 bool runOnModule (Module &M) override {
4646 const ShaderModel *SM = M.GetOrCreateHLModule ().GetShaderModel ();
4747
48- bool bUpdated = false ;
48+ bool Updated = false ;
4949
50- // HLSL Change Begin - Mark wave-sensitive HL functions as convergent.
50+ // Mark wave-sensitive HL functions as convergent.
5151 // This prevents optimizer passes (especially JumpThreading) from
5252 // restructuring control flow around wave ops, which would change
5353 // the set of active lanes at wave op call sites.
5454 for (Function &F : M.functions ()) {
5555 if (F.isDeclaration () && IsHLWaveSensitive (&F) &&
5656 !F.hasFnAttribute (Attribute::Convergent)) {
5757 F.addFnAttr (Attribute::Convergent);
58- bUpdated = true ;
58+ Updated = true ;
5959 }
6060 }
61- // HLSL Change End
6261
6362 // Can skip if in a shader and version that doesn't support derivatives.
6463 if (!SM->IsPS () && !SM->IsLib () &&
6564 (!SM->IsSM66Plus () || (!SM->IsCS () && !SM->IsMS () && !SM->IsAS ())))
66- return bUpdated ;
65+ return Updated ;
6766 SupportsVectors = SM->IsSM69Plus ();
6867
6968 for (Function &F : M.functions ()) {
@@ -80,13 +79,13 @@ class DxilConvergentMark : public ModulePass {
8079 if (PropagateConvergent (V, &F, PDR)) {
8180 // TODO: emit warning here.
8281 }
83- bUpdated = true ;
82+ Updated = true ;
8483 }
8584 }
8685 }
8786 }
8887
89- return bUpdated ;
88+ return Updated ;
9089 }
9190
9291private:
You can’t perform that action at this time.
0 commit comments