diff options
| author | Manman Ren <manman.ren@gmail.com> | 2015-10-15 04:58:24 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2015-10-15 04:58:24 +0000 |
| commit | f5499fd9d5d5b1e5792454e26c1a24bc05b672cc (patch) | |
| tree | 484f09f8c2f31c0ee05764f03ce7d9c94e2ccba1 /llvm/unittests/Support/BranchProbabilityTest.cpp | |
| parent | b5bba5c256f4fb07288c4517dbe6abbf2d85ee3d (diff) | |
| download | llvm-f5499fd9d5d5b1e5792454e26c1a24bc05b672cc.zip llvm-f5499fd9d5d5b1e5792454e26c1a24bc05b672cc.tar.gz llvm-f5499fd9d5d5b1e5792454e26c1a24bc05b672cc.tar.bz2 | |
Temporarily revert r250345 to sort out bot failure.
With r250345 and r250343, we start to observe the following failure
when bootstrap clang with lto and pgo:
PHI node entries do not match predecessors!
%.sroa.029.3.i = phi %"class.llvm::SDNode.13298"* [ null, %30953 ], [ null, %31017 ], [ null, %30998 ], [ null, %_ZN4llvm8dyn_castINS_14ConstantSDNodeENS_7SDValueEEENS_10cast_rettyIT_T0_E8ret_typeERS5_.exit.i.1804 ], [ null, %30975 ], [ null, %30991 ], [ null, %_ZNK4llvm3EVT13getScalarTypeEv.exit.i.1812 ], [ %..sroa.029.0.i, %_ZN4llvm11SmallVectorIiLj8EED1Ev.exit.i.1826 ], !dbg !451895
label %30998
label %_ZNK4llvm3EVTeqES0_.exit19.thread.i
LLVM ERROR: Broken function found, compilation aborted!
I will re-commit this if the bot does not recover.
llvm-svn: 250366
Diffstat (limited to 'llvm/unittests/Support/BranchProbabilityTest.cpp')
| -rw-r--r-- | llvm/unittests/Support/BranchProbabilityTest.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/llvm/unittests/Support/BranchProbabilityTest.cpp b/llvm/unittests/Support/BranchProbabilityTest.cpp index 37a5c3f..87a2509 100644 --- a/llvm/unittests/Support/BranchProbabilityTest.cpp +++ b/llvm/unittests/Support/BranchProbabilityTest.cpp @@ -287,45 +287,4 @@ TEST(BranchProbabilityTest, scaleBruteForce) { } } -TEST(BranchProbabilityTest, NormalizeEdgeWeights) { - { - SmallVector<uint32_t, 2> Weights{0, 0}; - BranchProbability::normalizeEdgeWeights(Weights.begin(), Weights.end()); - EXPECT_EQ(1u, Weights[0]); - EXPECT_EQ(1u, Weights[1]); - } - { - SmallVector<uint32_t, 2> Weights{0, UINT32_MAX}; - BranchProbability::normalizeEdgeWeights(Weights.begin(), Weights.end()); - EXPECT_EQ(1u, Weights[0]); - EXPECT_EQ(UINT32_MAX - 1u, Weights[1]); - } - { - SmallVector<uint32_t, 2> Weights{1, UINT32_MAX}; - BranchProbability::normalizeEdgeWeights(Weights.begin(), Weights.end()); - EXPECT_EQ(1u, Weights[0]); - EXPECT_EQ(UINT32_MAX - 1u, Weights[1]); - } - { - SmallVector<uint32_t, 3> Weights{0, 0, UINT32_MAX}; - BranchProbability::normalizeEdgeWeights(Weights.begin(), Weights.end()); - EXPECT_EQ(1u, Weights[0]); - EXPECT_EQ(1u, Weights[1]); - EXPECT_EQ(UINT32_MAX / 2u, Weights[2]); - } - { - SmallVector<uint32_t, 2> Weights{UINT32_MAX, UINT32_MAX}; - BranchProbability::normalizeEdgeWeights(Weights.begin(), Weights.end()); - EXPECT_EQ(UINT32_MAX / 3u, Weights[0]); - EXPECT_EQ(UINT32_MAX / 3u, Weights[1]); - } - { - SmallVector<uint32_t, 3> Weights{UINT32_MAX, UINT32_MAX, UINT32_MAX}; - BranchProbability::normalizeEdgeWeights(Weights.begin(), Weights.end()); - EXPECT_EQ(UINT32_MAX / 4u, Weights[0]); - EXPECT_EQ(UINT32_MAX / 4u, Weights[1]); - EXPECT_EQ(UINT32_MAX / 4u, Weights[2]); - } -} - } |
