[PATCH] D152859: [MemorySSA] Always perform MemoryUses liveOnEntry optimization on MSSA construction

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 14:38:35 PDT 2023


aeubanks created this revision.
aeubanks added reviewers: nikic, asbirlea, fhahn.
Herald added subscribers: kmitropoulou, StephenFan, hiraditya.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixes invariant memory regressions in future DSE patches.

Also add a flag to print<memoryssa> to not ensure optimized uses to test this.

Noticeable compile time regression [1], but a future DSE change that depends on this more than makes up for it.

[1] https://llvm-compile-time-tracker.com/compare.php?from=eb3d21be37c0b51d8e105a8c563626dd2b7e547d&to=5650772b87950a95dffd183e02368debb1056f99&stat=instructions:u


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152859

Files:
  llvm/include/llvm/Analysis/MemorySSA.h
  llvm/lib/Analysis/MemorySSA.cpp
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/test/Analysis/MemorySSA/tbaa.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152859.531073.patch
Type: text/x-patch
Size: 4578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230613/91500d14/attachment.bin>


More information about the llvm-commits mailing list