[PATCH] D107534: Add a pass to garbage-collect empty basic blocks after code generation.
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 16:28:22 PDT 2023
wenlei added inline comments.
================
Comment at: llvm/lib/CodeGen/GCEmptyBasicBlocks.cpp:53
+ if (HasAnyRealCode)
+ continue;
+
----------------
tmsriram wrote:
> If the block has no real instructions but debug instructions, is it correct to nuke it?
For debuggbility, probably not. Relatedly the current implementation also keep the block if it contains pseudo-probe, which is what we want.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107534/new/
https://reviews.llvm.org/D107534
More information about the llvm-commits
mailing list