[PATCH] D89423: Explicitly check for entry basic block, rather than relying on MachineBasicBlock::pred_empty.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 14:12:38 PDT 2020


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

- Add a private member function shouldEmitLabelForBasicBlock and call it to decide if basic blocks require symbols.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89423

Files:
  llvm/include/llvm/CodeGen/AsmPrinter.h
  llvm/include/llvm/CodeGen/MachineBasicBlock.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/MachineBasicBlock.cpp
  llvm/test/CodeGen/X86/basic-block-sections-unreachable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89423.298463.patch
Type: text/x-patch
Size: 6663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201015/977aec88/attachment-0001.bin>


More information about the llvm-commits mailing list