[PATCH] D146057: [CodeGen] Speedup stack slot sharing during stack coloring (interval overlapping test).
Valery Pykhtin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 1 00:13:26 PDT 2023
vpykhtin added inline comments.
================
Comment at: llvm/lib/CodeGen/StackSlotColoring.cpp:101-103
+ // LiveIntervalUnion has a parameter in its constructor so doing this
+ // dirty magic.
+ uint8_t LIUPad[sizeof(LiveIntervalUnion)];
----------------
arsenm wrote:
> I don't understand what this is doing, the parameter is just the allocator? Why can't you just normally construct a LiveIntervalUnion without placement new?
ColorAssignmentInfo objects are placed in SmallVector so they need default constructor.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146057/new/
https://reviews.llvm.org/D146057
More information about the llvm-commits
mailing list