diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2020-03-24 09:23:26 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2020-03-24 09:41:16 -0700 |
commit | c3417592c847b8bd67deab21bbe6d62a49bde234 (patch) | |
tree | 21ec264c19f000dfe7854315f37cf93a4804d39c /llvm/lib/CodeGen/MachineLoopInfo.cpp | |
parent | 9ca6334c336b0ca270e06e988d5bcb267e2f1f94 (diff) | |
download | llvm-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.cpp | 7 |
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 { |