[PATCH] D94394: [ARM] Align blocks that are not fallthough targets

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 01:23:52 PST 2021


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, ostannard, simon_tatham, efriedma.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

If the previous block in a function does not fallthough, adding nop's to align it will never be executed. This means we can freely (except for codesize) align more branches. This happens in constantislandspass (as it cannot happen later) and only happens at aggressive optimization levels as it does increase codesize.


https://reviews.llvm.org/D94394

Files:
  llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
  llvm/test/CodeGen/ARM/ParallelDSP/multi-use-loads.ll
  llvm/test/CodeGen/Thumb2/aligned-nonfallthrough.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94394.315726.patch
Type: text/x-patch
Size: 5284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/3d8cef51/attachment.bin>


More information about the llvm-commits mailing list