|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.opt.LoopExpansion
coins.opt.LoopUnswitching
title: LoopUnswitching class.
description: If-Expand LoopStmt.
| Field Summary |
| Fields inherited from class coins.opt.LoopExpansion |
fDbgLevel, flowRoot, fMaxAllowableNodesInLoopBody, fNumberOfGeneralRegisters, fOptionMap, fOptions, hirRoot, ioRoot, symRoot |
| Constructor Summary | |
LoopUnswitching(HirRoot phirRoot)
|
|
| Method Summary | |
boolean |
doSubprogram(SubpDefinition pSubpDef)
Do Loop-If Expand optimization in subprogram. |
protected boolean |
isExpansible(ForStmt pForStmt)
Check ForStmt may be optimized by Loop-if expansion. |
protected void |
pickUpVariables(ForStmt pForStmt)
Analize variables in ForStmt contains to get information to doing Loop-If expanding optimization. |
protected boolean |
removeIfStmt(ForStmt pForStmt)
Remove IfStmt from pForStmt |
| Methods inherited from class coins.opt.LoopExpansion |
calcStatementCount, getArrayVar, getDebug, getMaxAllowableStmtsInLoopBody, getSimpleExp, getSubscriptVar, hasBadElement, isBadElement, setMaxAllowableStmtsInLoopBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoopUnswitching(HirRoot phirRoot)
| Method Detail |
public boolean doSubprogram(SubpDefinition pSubpDef)
doSubprogram in class LoopExpansionpSubpDef - SubpDefinition to do optimization.
protected boolean isExpansible(ForStmt pForStmt)
pForStmt -
protected void pickUpVariables(ForStmt pForStmt)
pForStmt - ForStmt to analize.protected boolean removeIfStmt(ForStmt pForStmt)
pForStmt - ForStmt object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||