(gdb) bt
#0 0x00005555562eebc6 in llvm::BatchAAResults::getModRefInfo (this=0x7fffffffb980, I=0x55555ceb46a0,
OptLoc=std::optional<llvm::MemoryLocation> [no contained value])
at /home/m/llvm-project/llvm/include/llvm/Analysis/AliasAnalysis.h:641
#1 0x000055555657a3de in llvm::MemorySSA::createNewAccess<llvm::BatchAAResults> (this=0x55555ce56230,
I=0x55555ceb46a0, AAP=0x7fffffffb980, Template=0x0)
at /home/m/llvm-project/llvm/lib/Analysis/MemorySSA.cpp:1761
#2 0x0000555556567e7a in llvm::MemorySSA::buildMemorySSA (this=0x55555ce56230, BAA=...)
at /home/m/llvm-project/llvm/lib/Analysis/MemorySSA.cpp:1516
#3 0x0000555556566dd5 in llvm::MemorySSA::MemorySSA (this=0x55555ce56230, Func=..., AA=0x55555ceb3e48,
DT=0x55555ceb92b8) at /home/m/llvm-project/llvm/lib/Analysis/MemorySSA.cpp:1240
#4 0x000055555657c287 in std::make_unique<llvm::MemorySSA, llvm::Function&, llvm::AAResults*, llvm::DominatorTree*> () at /usr/include/c++/11/bits/unique_ptr.h:962
#5 0x000055555656acb9 in llvm::MemorySSAAnalysis::run (this=0x55555ceb6ab8, F=..., AM=...)
at /home/m/llvm-project/llvm/lib/Analysis/MemorySSA.cpp:2307
#6 0x00005555581630db in llvm::detail::AnalysisPassModel<llvm::Function, llvm::MemorySSAAnalysis, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>::Invalidator>::run (this=0x55555ceb6ab0, IR=..., AM=...)
at /home/m/llvm-project/llvm/include/llvm/IR/PassManagerInternal.h:325
#7 0x000055555758bbd2 in llvm::AnalysisManager<llvm::Function>::getResultImpl (this=0x7fffffffc610,
ID=0x55555cd5a0e8 <llvm::MemorySSAAnalysis::Key>, IR=...)
at /home/m/llvm-project/llvm/include/llvm/IR/PassManagerImpl.h:73
#8 0x000055555657c35a in llvm::AnalysisManager<llvm::Function>::getResult<llvm::MemorySSAAnalysis> (
this=0x7fffffffc610, IR=...) at /home/m/llvm-project/llvm/include/llvm/IR/PassManager.h:778
#9 0x0000555558e5571d in llvm::DSEPass::run (this=0x55555ceb7308, F=..., AM=...)
at /home/m/llvm-project/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:2252