AArch64: estimate inline asm length during branch relaxation
authorTim Northover <tnorthover@apple.com>
Tue, 17 Jun 2014 11:31:42 +0000 (11:31 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 17 Jun 2014 11:31:42 +0000 (11:31 +0000)
commitc22960dba6583c3044d37c3d8b411f393cba46e0
tree06623ac11ecba342677e2cfdce64dc3a212c141a
parent3a001aab4d743b3557854d205e12bd4eb02d6f2b
AArch64: estimate inline asm length during branch relaxation

To make sure branches are in range, we need to do a better job of estimating
the length of an inline assembly block than "it's probably 1 instruction, who'd
write asm with more than that?".

Fortunately there's already a (highly suspect, see how many ways you can think
of to break it!) callback for this purpose, which is used by the other targets.

rdar://problem/17277590

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211095 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.cpp
test/CodeGen/AArch64/branch-relax-asm.ll [new file with mode: 0644]