Refactored BasicBlock::genDU1() into three utility methods.

Const'ized a few pointers in locident.cpp
This commit is contained in:
Artur K
2012-03-17 23:15:27 +01:00
parent 61392772e1
commit d3a22fc03c
3 changed files with 121 additions and 112 deletions

View File

@@ -122,7 +122,10 @@ public:
{
edges[0].ip = ip;
}
void RemoveUnusedDefs(eReg regi, int defRegIdx, iICODE picode);
private:
bool FindUseBeforeDef(eReg regi, int defRegIdx, iICODE start_at);
void ProcessUseDefForFunc(eReg regi, int defRegIdx, iICODE picode);
bool isEndOfPath(int latch_node_idx) const;
Function *Parent;