[PATCH] D94376: [MemCpyOpt] Enable MemorySSA by default

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 10 12:11:04 PST 2021


nikic created this revision.
Herald added subscribers: wenlei, kerbowa, asbirlea, steven_wu, george.burgess.iv, hiraditya, Prazek, nhaehnle, jvesely.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This enables use of MemorySSA instead of MemDep in MemCpyOpt. To allow this without significant compile-time impact, the MemCpyOpt pass is moved directly before DSE (in the cases where this was not already the case) in order to avoid a duplicate MemorySSA construction.

With that done, this change is compile-time positive: http://llvm-compile-time-tracker.com/compare.php?from=f6f6f6375d1a4bced8a6e79a78726ab32b8dd879&to=3bef22406a62ae83712557038305cd135d1b1851&stat=instructions

Run-time impact is to be determined...


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94376

Files:
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
  llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
  llvm/test/Analysis/BasicAA/phi-values-usage.ll
  llvm/test/CodeGen/AMDGPU/opt-pipeline.ll
  llvm/test/Other/new-pm-defaults.ll
  llvm/test/Other/new-pm-lto-defaults.ll
  llvm/test/Other/new-pm-thinlto-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
  llvm/test/Other/opt-LTO-pipeline.ll
  llvm/test/Other/opt-O2-pipeline.ll
  llvm/test/Other/opt-O3-pipeline-enable-matrix.ll
  llvm/test/Other/opt-O3-pipeline.ll
  llvm/test/Other/opt-Os-pipeline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94376.315670.patch
Type: text/x-patch
Size: 20368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210110/2cbc6c6d/attachment.bin>


More information about the llvm-commits mailing list