BranchRelaxation: Support expanding unconditional branches
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 6 Oct 2016 16:20:41 +0000 (16:20 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 6 Oct 2016 16:20:41 +0000 (16:20 +0000)
commit6bc43d8627ca44465e7ce261a0828b70d3460e13
tree255944724c060d2eef50f0ccf04df7546aca245c
parentd391d6f1c32d7316cb7fa8cfa4e039f94133ccbe
BranchRelaxation: Support expanding unconditional branches

AMDGPU needs to expand unconditional branches in a new
block with an indirect branch.

llvm-svn: 283464
15 files changed:
llvm/include/llvm/Target/TargetInstrInfo.h
llvm/lib/CodeGen/BranchRelaxation.cpp
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFObjectWriter.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.h
llvm/lib/Target/AMDGPU/SOPInstructions.td
llvm/test/CodeGen/AMDGPU/branch-relax-spill.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/branch-relaxation.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/si-lower-control-flow-unreachable-block.ll
llvm/test/CodeGen/AMDGPU/skip-if-dead.ll