[PATCH] D147982: Account for PATCHABLE instrs in Branch Relaxation

Daniel Hoekwater via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 17:25:27 PDT 2023


dhoekwater created this revision.
dhoekwater added reviewers: paquette, t.p.northover.
Herald added a subscriber: hiraditya.
Herald added a project: All.
dhoekwater requested review of this revision.
Herald added a project: LLVM.

PATCHABLE_* instructions expand to up to 36-byte
sleds. Updating the size of PATCHABLE instructions
causes them to be outlined, so we need to add a
check to prevent the outliner from considering
basic blocks that contain PATCHABLE instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147982

Files:
  llvm/lib/CodeGen/TargetInstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/test/CodeGen/AArch64/branch-relax-xray.ll
  llvm/test/CodeGen/AArch64/machine-outliner-patchable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147982.512291.patch
Type: text/x-patch
Size: 5500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230411/8b212a57/attachment.bin>


More information about the llvm-commits mailing list