[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port SpillPlacement analysis to NPM (PR #116618)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 18 06:43:49 PST 2024


================
@@ -223,7 +248,7 @@ void SpillPlacement::activate(unsigned n) {
   if (ActiveNodes->test(n))
     return;
   ActiveNodes->set(n);
-  nodes[n].clear(Threshold);
+  nodes.get()[n].clear(Threshold);
----------------
paperchalice wrote:

You can use `operator []` if `nodes` is an array form `unique_ptr`.

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


More information about the llvm-branch-commits mailing list