[FastISel][X86] - Add branch weights
authorJuergen Ributzka <juergen@apple.com>
Fri, 13 Jun 2014 00:45:11 +0000 (00:45 +0000)
committerJuergen Ributzka <juergen@apple.com>
Fri, 13 Jun 2014 00:45:11 +0000 (00:45 +0000)
commit7f8d138f50f57144650dfba78ea0e6e168a23c54
tree5ef27c18e67d5dbb6b529d6a195d0751c8445b63
parentf7a2d5e387de25af9711f04f253bc0e63fd988dd
[FastISel][X86] - Add branch weights

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

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