[PowerPC][Future] Branch Distance Estimation For Prefixed Instructions
authorStefan Pintilie <stefanp@ca.ibm.com>
Thu, 30 Jan 2020 14:35:17 +0000 (08:35 -0600)
committerStefan Pintilie <stefanp@ca.ibm.com>
Thu, 30 Jan 2020 14:54:33 +0000 (08:54 -0600)
commit9de1241bb2dd1b0e39bb695c701f2d299776ff6b
tree25d9bd8bfa5ca233887ee9d41e8d55ca3503f2d7
parentb54a8ec1bcd3689771c847cb37515b627034e518
[PowerPC][Future] Branch Distance Estimation For Prefixed Instructions

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.

Differential Revision: https://reviews.llvm.org/D72572
llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
llvm/test/CodeGen/PowerPC/alignlongjumptest.mir [new file with mode: 0644]