aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineLoopInfo.cpp
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2020-03-24 09:23:26 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2020-03-24 09:41:16 -0700
commitc3417592c847b8bd67deab21bbe6d62a49bde234 (patch)
tree21ec264c19f000dfe7854315f37cf93a4804d39c /llvm/lib/CodeGen/MachineLoopInfo.cpp
parent9ca6334c336b0ca270e06e988d5bcb267e2f1f94 (diff)
downloadllvm-c3417592c847b8bd67deab21bbe6d62a49bde234.zip
llvm-c3417592c847b8bd67deab21bbe6d62a49bde234.tar.gz
llvm-c3417592c847b8bd67deab21bbe6d62a49bde234.tar.bz2
Revert "Include static prof data when collecting loop BBs"
This reverts commit 129c911efaa492790c251b3eb18e4db36b55cbc5. Due to an internal benchmark regression.
Diffstat (limited to 'llvm/lib/CodeGen/MachineLoopInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineLoopInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineLoopInfo.cpp b/llvm/lib/CodeGen/MachineLoopInfo.cpp
index 67916fb..0c1439d 100644
--- a/llvm/lib/CodeGen/MachineLoopInfo.cpp
+++ b/llvm/lib/CodeGen/MachineLoopInfo.cpp
@@ -111,13 +111,6 @@ DebugLoc MachineLoop::getStartLoc() const {
return DebugLoc();
}
-bool MachineLoop::hasStaticProfInfo() const {
- return llvm::any_of(blocks(), [](const MachineBasicBlock *MBB){
- const BasicBlock *BB = MBB->getBasicBlock();
- return BB && BB->getTerminator()->hasMetadata(LLVMContext::MD_prof);
- });
-}
-
MachineBasicBlock *
MachineLoopInfo::findLoopPreheader(MachineLoop *L,
bool SpeculativePreheader) const {