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 | 52707d211b073942a461af811dcc442456a3064b (patch) | |
tree | a2fcb6698aef6b4bc450dc842593003ec964ea7d /test | |
parent | 509e2e953b0981a66cb58a45cb5a3070dff5fed5 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/BlockFrequencyInfo/bad_input.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/BlockFrequencyInfo/bad_input.ll b/test/Analysis/BlockFrequencyInfo/bad_input.ll index e5b1f500e1e..20b87e6dfcb 100644 --- a/test/Analysis/BlockFrequencyInfo/bad_input.ll +++ b/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) |