[llvm] [DirectX] Introduce the DXILResourceAccess pass (PR #116726)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 15:15:28 PST 2024
================
@@ -1348,5 +1350,6 @@ PreservedAnalyses ScalarizerPass::run(Function &F, FunctionAnalysisManager &AM)
bool Changed = Impl.visit(F);
PreservedAnalyses PA;
PA.preserve<DominatorTreeAnalysis>();
+ PA.preserve<DXILResourceAnalysis>();
----------------
bogner wrote:
If there was never a DXILResourceWrapperPass initialized then preserving it is a no-op. This is needed so that *if* the DXILResourceWrapperPass ran before this pass we don't need to recalculate it again *after* this pass. If we don't do this then we need to run resource analysis twice in our pipeline.
https://github.com/llvm/llvm-project/pull/116726
More information about the llvm-commits
mailing list