[PATCH] D107534: Add a pass to garbage-collect empty basic blocks after code generation.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 22 15:25:11 PDT 2023


rahmanl updated this revision to Diff 552517.
rahmanl added a comment.

- Add check for stats.
- Change the option name to `-gc-empty-basic-blocks`.
- Rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107534/new/

https://reviews.llvm.org/D107534

Files:
  llvm/include/llvm/CodeGen/Passes.h
  llvm/include/llvm/InitializePasses.h
  llvm/lib/CodeGen/CMakeLists.txt
  llvm/lib/CodeGen/GCEmptyBasicBlocks.cpp
  llvm/lib/CodeGen/TargetPassConfig.cpp
  llvm/test/CodeGen/X86/basic-block-sections-labels-empty-block.ll
  llvm/test/CodeGen/X86/gc-empty-basic-blocks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107534.552517.patch
Type: text/x-patch
Size: 8562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230822/98e8dbe2/attachment.bin>


More information about the llvm-commits mailing list