[CodeGen][AArch64] Add TargetInstrInfo hook to modify the TailDuplicateSize default...
authorNicholas Guy <nicholas.guy@arm.com>
Thu, 28 Jan 2021 17:22:21 +0000 (17:22 +0000)
committerNicholas Guy <nicholas.guy@arm.com>
Mon, 8 Feb 2021 13:28:00 +0000 (13:28 +0000)
commitcd880442ae66561e45257f2440321a0a671acae7
tree7a9fcc8c46ea7e186e8c90b1f165bf3ea02e458b
parent88d5c4c2eeb66e0ca62d7a502bd82ac1e902cafb
[CodeGen][AArch64] Add TargetInstrInfo hook to modify the TailDuplicateSize default threshold

Different targets might handle branch performance differently, so this patch allows for
targets to specify the TailDuplicateSize threshold. Said threshold defines how small a branch
can be and still be duplicated to generate straight-line code instead.
This patch also specifies said override values for the AArch64 subtarget.

Differential Revision: https://reviews.llvm.org/D95631
llvm/include/llvm/CodeGen/TargetInstrInfo.h
llvm/lib/CodeGen/MachineBlockPlacement.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h
llvm/test/CodeGen/AArch64/aarch64-tail-dup-size.ll [new file with mode: 0644]