[llvm] r206554 - blockfreq: Really fix r206548 (and r206549)
Duncan P. N. Exon Smith
dexonsmith at apple.com
Thu Apr 17 19:10:09 PDT 2014
Author: dexonsmith
Date: Thu Apr 17 21:10:09 2014
New Revision: 206554
URL: http://llvm.org/viewvc/llvm-project?rev=206554&view=rev
Log:
blockfreq: Really fix r206548 (and r206549)
Turns out this code is dead.
Modified:
llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp
Modified: llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp?rev=206554&r1=206553&r2=206554&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp (original)
+++ llvm/trunk/lib/Analysis/BlockFrequencyInfoImpl.cpp Thu Apr 17 21:10:09 2014
@@ -369,38 +369,6 @@ typedef BlockFrequencyInfoImplBase::Pack
typedef BlockFrequencyInfoImplBase::Weight Weight;
typedef BlockFrequencyInfoImplBase::FrequencyData FrequencyData;
-/// \brief Stack entry describing a loop.
-struct LoopStackEntry {
- BlockNode LoopHead;
- BlockNode LatestBackedge;
-};
-
-/// \brief Stack describing currently open loops.
-struct LoopStack {
- std::vector<LoopStackEntry> OpenLoops;
-
- void push(const BlockNode &LoopHead, const BlockNode &LatestBackedge) {
- assert(LoopHead.isValid());
- assert(LatestBackedge.isValid());
- OpenLoops.emplace_back(LoopHead, LatestBackedge);
- }
- void pop(const BlockNode &FinishedNode) {
- while (!empty() && top().LatestBackedge <= FinishedNode)
- OpenLoops.pop_back();
- }
- bool empty() const { return OpenLoops.empty(); }
- const LoopStackEntry &top() const {
- assert(!OpenLoops.empty());
- return OpenLoops.back();
- }
- void adjustAfterFinishing(const BlockNode &Current,
- const BlockNode &LatestBackedge) {
- pop(Current);
- if (LatestBackedge.isValid() && LatestBackedge > Current)
- push(Current, LatestBackedge);
- }
-};
-
/// \brief Dithering mass distributer.
///
/// This class splits up a single mass into portions by weight, dithering to
More information about the llvm-commits
mailing list