[PATCH] D37730: [PowerPC] eliminate unconditional branch to the next instruction

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 00:57:05 PDT 2017


inouehrs created this revision.

This patch makes `analyzeBranch` eliminate unconditional branch to the next instruction.

After basic blocks are re-organized by optimizers, such as machine block placement, a BB may end with an unconditional branch to the next (fallthrough) BB. This patch removes such redundant branch instruction.


https://reviews.llvm.org/D37730

Files:
  lib/Target/PowerPC/PPCInstrInfo.cpp
  test/CodeGen/PowerPC/2016-04-28-setjmp.ll
  test/CodeGen/PowerPC/atomics-regression.ll
  test/CodeGen/PowerPC/sjlj.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37730.114773.patch
Type: text/x-patch
Size: 7587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170912/fe88284f/attachment.bin>


More information about the llvm-commits mailing list