[llvm] [Mem2Reg] Replace block maps with block numbers (PR #101391)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 05:37:00 PDT 2024
================
@@ -743,6 +741,8 @@ void PromoteMem2Reg::run() {
AllocaDbgUsers.resize(Allocas.size());
AllocaATInfo.resize(Allocas.size());
AllocaDPUsers.resize(Allocas.size());
+ BBNumPreds.resize(F.getMaxBlockNumber());
+ Visited.resize(F.getMaxBlockNumber());
----------------
aengelke wrote:
I moved the initialization more downwards to their first users, but ultimately, when PHI nodes need to be inserted, I don't think we can avoid the initialization.
https://github.com/llvm/llvm-project/pull/101391
More information about the llvm-commits
mailing list