[llvm] [CodeGen] Port AtomicExpand to new Pass Manager (PR #71220)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 18:52:47 PST 2024
================
@@ -380,7 +380,7 @@ void NVPTXPassConfig::addIRPasses() {
addStraightLineScalarOptimizationPasses();
}
- addPass(createAtomicExpandPass());
----------------
paperchalice wrote:
Error message:
```sh
Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed.
```
It uses `auto *TPC = getAnalysisIfAvailable<TargetPassConfig>();` to get `TargetPassConfig` previously and now uses `getAnalysis<TargetPassConfig>()`.
https://github.com/llvm/llvm-project/pull/71220
More information about the llvm-commits
mailing list