[PATCH] D15393: [X86] Order the local stack symbols to improve code size and locality.

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 10:57:07 PST 2015


hans added inline comments.

================
Comment at: lib/CodeGen/PrologEpilogInserter.cpp:708
@@ -707,3 +707,3 @@
 
-  // Then assign frame offsets to stack objects that are not used to spill
-  // callee saved registers.
+  std::vector<int> ObjectsToAllocate;
+
----------------
The compile-time value is for the object's initial capacity. If the size grows beyond that, it will allocate memory on the heap.

See: http://llvm.org/docs/ProgrammersManual.html#llvm-adt-smallvector-h


http://reviews.llvm.org/D15393





More information about the llvm-commits mailing list