[PATCH] D24318: AArch64: Use TTI branch functions in branch relaxation

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 15:04:54 PDT 2016


arsenm created this revision.
arsenm added a reviewer: t.p.northover.
arsenm added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added subscribers: nhaehnle, wdng, nemanjai, jyknight, dschuff, arsenm, jfb, rengolin, aemerson, jholewinski.

The main change is to start optionally returning the change in code size from InsertBranch/RemoveBranch. Alternatively, the code size could be inferred from the number of instructions emitted with getInstSizeInBytes, however this doesn't work in the RemoveBranch case.

Patch mostly by Tim Northover


https://reviews.llvm.org/D24318

Files:
  include/llvm/Target/TargetInstrInfo.h
  lib/Target/AArch64/AArch64BranchRelaxation.cpp
  lib/Target/AArch64/AArch64InstrInfo.cpp
  lib/Target/AArch64/AArch64InstrInfo.h
  lib/Target/AMDGPU/R600InstrInfo.cpp
  lib/Target/AMDGPU/R600InstrInfo.h
  lib/Target/AMDGPU/SIInstrInfo.cpp
  lib/Target/AMDGPU/SIInstrInfo.h
  lib/Target/ARM/ARMBaseInstrInfo.cpp
  lib/Target/ARM/ARMBaseInstrInfo.h
  lib/Target/AVR/AVRInstrInfo.cpp
  lib/Target/AVR/AVRInstrInfo.h
  lib/Target/BPF/BPFInstrInfo.cpp
  lib/Target/BPF/BPFInstrInfo.h
  lib/Target/Hexagon/HexagonInstrInfo.cpp
  lib/Target/Hexagon/HexagonInstrInfo.h
  lib/Target/Lanai/LanaiInstrInfo.cpp
  lib/Target/Lanai/LanaiInstrInfo.h
  lib/Target/MSP430/MSP430InstrInfo.cpp
  lib/Target/MSP430/MSP430InstrInfo.h
  lib/Target/Mips/MipsInstrInfo.cpp
  lib/Target/Mips/MipsInstrInfo.h
  lib/Target/NVPTX/NVPTXInstrInfo.cpp
  lib/Target/NVPTX/NVPTXInstrInfo.h
  lib/Target/PowerPC/PPCInstrInfo.cpp
  lib/Target/PowerPC/PPCInstrInfo.h
  lib/Target/Sparc/SparcInstrInfo.cpp
  lib/Target/Sparc/SparcInstrInfo.h
  lib/Target/SystemZ/SystemZInstrInfo.cpp
  lib/Target/SystemZ/SystemZInstrInfo.h
  lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
  lib/Target/WebAssembly/WebAssemblyInstrInfo.h
  lib/Target/X86/X86InstrInfo.cpp
  lib/Target/X86/X86InstrInfo.h
  lib/Target/XCore/XCoreInstrInfo.cpp
  lib/Target/XCore/XCoreInstrInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24318.70608.patch
Type: text/x-patch
Size: 52667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160907/9412f08d/attachment-0001.bin>


More information about the llvm-commits mailing list