[PowerPC] Add Branch Hints for Highly-Biased Branches
authorHal Finkel <hfinkel@anl.gov>
Sat, 12 Dec 2015 00:32:00 +0000 (00:32 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 12 Dec 2015 00:32:00 +0000 (00:32 +0000)
commit8f2bcca5c759d0c46f86b852aa1747768e954d38
treeeaca681aac97ede40438f8073008847066af3fff
parent670d12555d5662b55e62a6ea43da25a627d5e6dd
[PowerPC] Add Branch Hints for Highly-Biased Branches

This branch adds hints for highly biased branches on the PPC architecture. Even
in absence of profiling information, LLVM will mark code reaching unreachable
terminators and other exceptional control flow constructs as highly unlikely to
be reached.

Patch by Tom Jablin!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
test/CodeGen/PowerPC/branch-hint.ll [new file with mode: 0644]