[PATCH] D72572: [PowerPC][Future] Branch Distance Estimation For Prefixed Instructions

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 12 08:58:48 PST 2020


stefanp created this revision.
stefanp added reviewers: power-llvm-team, nemanjai, hfinkel.
Herald added subscribers: shchenz, jsji, kbarton, hiraditya.
Herald added a project: LLVM.
stefanp added a parent revision: D72570: [PowerPC][Future] Prefixed Instructions 64 Byte Boundary Support.
Herald added a subscriber: wuzish.

By adding the prefixed instructions the branch distances are no longer computed correctly. Since prefixed instructions cannot cross a 64 byte boundary we have to assume that a prefixed instruction may have a nop prepended to it. This patch tries to take that nop into consideration when computing the size of basic blocks.


https://reviews.llvm.org/D72572

Files:
  llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
  llvm/test/CodeGen/PowerPC/alignlongjumptest.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72572.237538.patch
Type: text/x-patch
Size: 5361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200112/41de02bb/attachment.bin>


More information about the llvm-commits mailing list