[MemorySSA] Allocate MemoryUse and MemoryDef with a bump allocator (NFC) (#236419)
Update MemorySSA to use BumPtrAllocator to allocate MemoryUse and
MemoryDef. This improves compile-time vs using system allocators:
stage1-O3: -0.11%
stage1-ReleaseThinLTO: -0.15%
stage1-ReleaseLTO-g: -0.08%
stage1-aarch64-O3: -0.13%
stage2-O3: -0.12%
stage2-clang: -0.09%
https://llvm-compile-time-tracker.com/compare.php?from=a6e37c55c604be1db6e4096fc2cc758972fe7868&to=d1ff4b406dfe3673de36d1acca6a1e4cff112f3c&stat=instructions:u
The initial slab size is relatively small to avoid increasing peak
memory use for modules with lots of small functions.
Assisted-by: Opus 5.5
PR: https://github.com/llvm/llvm-project/pull/236419