diff options
author | Igor Laevsky <igmyrj@gmail.com> | 2016-06-16 16:25:53 +0000 |
---|---|---|
committer | Igor Laevsky <igmyrj@gmail.com> | 2016-06-16 16:25:53 +0000 |
commit | bf43bfa0c0ada11c9bdd1eb95e9b903095e98153 (patch) | |
tree | 3bdeda7efaeb13719577e5b8a115491068c29c1c /unittests | |
parent | 71b1fedfef220802a262c6909abc94006ad55c3a (diff) |
Revert r272891 "[JumpThreading] Prevent dangling pointer problems in BranchProbabilityInfo"
It was causing failures in Profile-i386 and Profile-x86_64 tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Analysis/BlockFrequencyInfoTest.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/unittests/Analysis/BlockFrequencyInfoTest.cpp b/unittests/Analysis/BlockFrequencyInfoTest.cpp index d07b103ccb6..b3b0fcfb049 100644 --- a/unittests/Analysis/BlockFrequencyInfoTest.cpp +++ b/unittests/Analysis/BlockFrequencyInfoTest.cpp @@ -54,11 +54,6 @@ protected: SMDiagnostic Err; return parseAssemblyString(ModuleStrig, Err, C); } - - void destroyBFI() { - // Prevent AssertingVH from failing. - BPI->releaseMemory(); - } }; TEST_F(BlockFrequencyInfoTest, Basic) { @@ -85,8 +80,6 @@ TEST_F(BlockFrequencyInfoTest, Basic) { EXPECT_EQ(BFI.getBlockProfileCount(BB3).getValue(), UINT64_C(100)); EXPECT_EQ(BFI.getBlockProfileCount(BB1).getValue(), 100 * BB1Freq / BB0Freq); EXPECT_EQ(BFI.getBlockProfileCount(BB2).getValue(), 100 * BB2Freq / BB0Freq); - - destroyBFI(); } } // end anonymous namespace |