Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: src/IceCfg.h

Issue 2149803005: Subzero: Improve LoopAnalyzer Interface (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More Refactoring Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | src/IceLoopAnalyzer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index 490d1d065d7c46b0c5cd6abc59d5d9190a7047f6..02e8394511ec23bf74f72539487813647bb07cff 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -20,6 +20,7 @@
#include "IceClFlags.h"
#include "IceDefs.h"
#include "IceGlobalContext.h"
+#include "IceLoopAnalyzer.h"
#include "IceStringPool.h"
#include "IceTypes.h"
@@ -301,7 +302,8 @@ private:
uint32_t CombinedAlignment, InstList &Insts,
AllocaBaseVariableType BaseVariableType);
void findRematerializable();
- CfgVector<Inst *> findLoopInvariantInstructions(SizeT LoopHeaderIndex);
+ CfgVector<Inst *>
+ findLoopInvariantInstructions(const CfgUnorderedSet<SizeT> &Body);
GlobalContext *Ctx;
uint32_t SequenceNumber; /// output order for emission
@@ -332,12 +334,12 @@ private:
/// Globals required by this CFG. Mostly used for the profiler's globals.
std::unique_ptr<VariableDeclarationList> GlobalInits;
CfgVector<InstJumpTable *> JumpTables;
- CfgUnorderedMap<SizeT, CfgVector<SizeT>> LoopInfo;
/// CurrentNode is maintained during dumping/emitting just for validating
/// Variable::DefNode. Normally, a traversal over CfgNodes maintains this, but
/// before global operations like register allocation, resetCurrentNode()
/// should be called to avoid spurious validation failures.
const CfgNode *CurrentNode = nullptr;
+ CfgVector<Loop> LoopInfo;
public:
static void TlsInit() { CfgAllocatorTraits::init(); }
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | src/IceLoopAnalyzer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698