[PATCH] D145211: Relax cross-section branches
Daniel Hoekwater via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 21 14:18:02 PDT 2023
dhoekwater updated this revision to Diff 543063.
dhoekwater marked an inline comment as done and an inline comment as not done.
dhoekwater added a comment.
Use the code model instead of some arbitrary number for cross-section branches
The idea of a fixed cross-section branch distance isn't really
representative of the cross-section branch issue. The linker
can place two sections any distance away from each other
so long as both fit within the program address range specified
by the code model. Use the code model instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145211/new/
https://reviews.llvm.org/D145211
Files:
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/CodeGen/BranchRelaxation.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h
llvm/lib/Target/TargetMachine.cpp
llvm/test/CodeGen/AArch64/branch-relax-b.ll
llvm/test/CodeGen/AArch64/branch-relax-cross-section.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145211.543063.patch
Type: text/x-patch
Size: 22513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230721/5818ea9b/attachment.bin>
More information about the llvm-commits
mailing list