aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/BlockFrequencyInfoTest.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-06-16Revert r272891 "[JumpThreading] Prevent dangling pointer problems in ↵Igor Laevsky1-7/+0
BranchProbabilityInfo" It was causing failures in Profile-i386 and Profile-x86_64 tests. llvm-svn: 272912
2016-06-16[JumpThreading] Prevent dangling pointer problems in BranchProbabilityInfoIgor Laevsky1-0/+7
We should update results of the BranchProbabilityInfo after removing block in JumpThreading. Otherwise we will get dangling pointer inside BranchProbabilityInfo cache. Differential Revision: http://reviews.llvm.org/D20957 llvm-svn: 272891
2016-04-14Remove every uses of getGlobalContext() in LLVM (but the C API)Mehdi Amini1-1/+1
At the same time, fixes InstructionsTest::CastInst unittest: yes you can leave the IR in an invalid state and exit when you don't destroy the context (like the global one), no longer now. This is the first part of http://reviews.llvm.org/D19094 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266379
2016-03-23Add getBlockProfileCount method to BlockFrequencyInfoEaswaran Raman1-0/+86
Differential Revision: http://reviews.llvm.org/D18233 llvm-svn: 264179