[PATCH] D75438: [BranchAlign] Reduce the number of emitted fragments due to branch align

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 01:09:16 PST 2020


skan created this revision.
skan added reviewers: annita.zhang, reames, MaskRay, craig.topper, LuoYuanke, jyknight.
Herald added a project: LLVM.

Currently, a BoundaryAlign fragment will be inserted before the
instruction that is not macro fused but valid as the first instruction in a
fused pair, this fragment is excessive. In addition, a BoundaryAlign
fragment may be inserted after the branch that needs to be aligned to
truncate the current fragment, this fragment is also excessive.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75438

Files:
  llvm/include/llvm/MC/MCFragment.h
  llvm/include/llvm/MC/MCObjectStreamer.h
  llvm/lib/MC/MCAssembler.cpp
  llvm/lib/MC/MCFragment.cpp
  llvm/lib/MC/MCObjectStreamer.cpp
  llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
  llvm/test/MC/X86/align-branch-64-negative.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75438.247566.patch
Type: text/x-patch
Size: 12053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200302/bdf3ca5d/attachment.bin>


More information about the llvm-commits mailing list