[FastISel][AArch64] Add branch weights.
authorJuergen Ributzka <juergen@apple.com>
Fri, 1 Aug 2014 18:39:24 +0000 (18:39 +0000)
committerJuergen Ributzka <juergen@apple.com>
Fri, 1 Aug 2014 18:39:24 +0000 (18:39 +0000)
commit3d253a3f802d7c494e4804b6b65bc71473fffc21
tree8e31ffc042cce62b9130e856c1a9e978081a75bf
parentfff7ba35a3576052595a9bcba90a81e40930126c
[FastISel][AArch64] Add branch weights.

Add branch weights to branch instructions, so that the following passes can
optimize based on it (i.e. basic block ordering).

Fixes <rdar://problem/17887137>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214537 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FastISel.cpp
test/CodeGen/AArch64/fast-isel-branch_weights.ll [new file with mode: 0644]