Reapply "blockfreq: Rewrite BlockFrequencyInfoImpl"
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 21 Apr 2014 17:57:07 +0000 (17:57 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 21 Apr 2014 17:57:07 +0000 (17:57 +0000)
commit9a11d668f97d1712d6e24acc96a0603e0855fc80
treedfb37154cac4d5bc3e62413b09ae3cf8b06db340
parentd5ebbc5edf14085729951759e02def382a39cab3
Reapply "blockfreq: Rewrite BlockFrequencyInfoImpl"

This reverts commit r206707, reapplying r206704.  The preceding commit
to CalcSpillWeights should have sorted out the failing buildbots.

<rdar://problem/14292693>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206766 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Analysis/BlockFrequencyInfoImpl.h
lib/Analysis/BlockFrequencyInfo.cpp
lib/Analysis/BlockFrequencyInfoImpl.cpp [new file with mode: 0644]
lib/Analysis/CMakeLists.txt
lib/CodeGen/MachineBlockFrequencyInfo.cpp
test/Analysis/BlockFrequencyInfo/bad_input.ll [new file with mode: 0644]
test/Analysis/BlockFrequencyInfo/basic.ll
test/Analysis/BlockFrequencyInfo/double_exit.ll [new file with mode: 0644]
test/Analysis/BlockFrequencyInfo/irreducible.ll [new file with mode: 0644]
test/Analysis/BlockFrequencyInfo/loop_with_branch.ll [new file with mode: 0644]
test/Analysis/BlockFrequencyInfo/nested_loop_with_branches.ll [new file with mode: 0644]
test/CodeGen/XCore/llvm-intrinsics.ll