[PATCH] D23373: BranchRelaxation: Support expanding unconditional branches

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 13:58:29 PDT 2016


arsenm created this revision.
arsenm added reviewers: t.p.northover, tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: arsenm, qcolombet, aemerson.

 AMDGPU needs to expand unconditional branches in a new block.

This currently causes an assertion to be hit in the AArch64 branch relax tests when analyzeBranch fails, which are cases I believe are currently miscompiled if there are two conditional branches in a block

https://reviews.llvm.org/D23373

Files:
  lib/CodeGen/BranchRelaxation.cpp
  lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  lib/Target/AMDGPU/AMDGPUAsmPrinter.h
  lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  lib/Target/AMDGPU/AMDGPUMCInstLower.h
  lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFObjectWriter.cpp
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstrInfo.h
  lib/Target/AMDGPU/SIInstrInfo.td
  test/CodeGen/AMDGPU/branch-relax-spill.ll
  test/CodeGen/AMDGPU/branch-relaxation.ll
  test/CodeGen/AMDGPU/si-lower-control-flow-unreachable-block.ll
  test/CodeGen/AMDGPU/skip-if-dead.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23373.67599.patch
Type: text/x-patch
Size: 54613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160810/518e13c5/attachment.bin>


More information about the llvm-commits mailing list