[llvm-branch-commits] [NFC][PromoteMem2Reg] Move IncomingVals, IncomingLocs, Worklist into class (PR #142468)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jun 3 09:07:37 PDT 2025


================
@@ -849,29 +869,26 @@ void PromoteMem2Reg::run() {
   // Set the incoming values for the basic block to be null values for all of
   // the alloca's.  We do this in case there is a load of a value that has not
   // been stored yet.  In this case, it will get this null value.
-  RenamePassData::ValVector Values(Allocas.size());
+  IncomingVals.assign(Allocas.size(), nullptr);
----------------
vitalybuka wrote:

`resize()`?

https://github.com/llvm/llvm-project/pull/142468


More information about the llvm-branch-commits mailing list