diff options
author | Cong Hou <congh@google.com> | 2015-12-18 21:53:24 +0000 |
---|---|---|
committer | Cong Hou <congh@google.com> | 2015-12-18 21:53:24 +0000 |
commit | fd0d62b87ef54e4cfdee7eb9ba7925af03d396aa (patch) | |
tree | 54cedcb700b316358a7ac7070c0cd06400bcdde5 /llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll | |
parent | 0f59cb38e7f319ee46b66812b212a5afaa3572bb (diff) | |
download | bcm5719-llvm-fd0d62b87ef54e4cfdee7eb9ba7925af03d396aa.tar.gz bcm5719-llvm-fd0d62b87ef54e4cfdee7eb9ba7925af03d396aa.zip |
Use getEdgeProbability() instead of getEdgeWeight() in BFI and remove getEdgeWeight() interfaces from MBPI.
This patch removes all getEdgeWeight() interfaces from CodeGen directory. As
getEdgeProbability() is a little more expensive than getEdgeWeight(), I will
compose a patch soon in which BPI only stores probabilities instead of edge
weights so that getEdgeProbability() will have O(1) time.
Differential revision: http://reviews.llvm.org/D15489
llvm-svn: 256039
Diffstat (limited to 'llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll')
-rw-r--r-- | llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll b/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll index e5b1f500e1e..20b87e6dfcb 100644 --- a/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll +++ b/llvm/test/Analysis/BlockFrequencyInfo/bad_input.ll @@ -9,8 +9,8 @@ define void @branch_weight_0(i32 %a) { entry: br label %for.body -; Check that we get 1,4 instead of 0,3. -; CHECK-NEXT: for.body: float = 4.0, +; Check that we get 1 and a huge frequency instead of 0,3. +; CHECK-NEXT: for.body: float = 2147483647.8, for.body: %i = phi i32 [ 0, %entry ], [ %inc, %for.body ] call void @g(i32 %i) |