Lines Matching defs:offsetPC

274 RegAccessType insertAUse(DefUsePair* ptr, int offsetPC, int regNum, LowOpndRegType physicalType);
275 DefUsePair* insertADef(int offsetPC, int regNum, LowOpndRegType pType, RegAccessType rType);
285 DefUsePair* searchDefUseTable(int offsetPC, int regNum, LowOpndRegType pType);
559 int offsetPC_back = offsetPC;
560 offsetPC = PC_FOR_END_OF_BB;
574 offsetPC = offsetPC_back;
650 Global variables accessed: offsetPC, rPC
667 offsetPC = seqNum;
702 ALOGI("call mergeEntry2 at offsetPC %x kk %d VR %d %d", offsetPC, kk,
776 offsetPC = mir->seqNum;
814 if(deadPCs[k] == offsetPC) {
839 ALOGI("DSE: stmt at offsetPC %d is dead", offsetPC);
873 offsetPC,
899 mapFromBCtoNCG[offsetPC] = offsetNCG;
1053 ALOGI("reaching def %d @ %d for VR %d %d access %d", k, currentInfo.reachingDefs[k].offsetPC,
1079 /* from this point on, the reachingDefs for variable A is a single def to currentInfo at offsetPC */
1081 currentBB->infoBasicBlock[indexToA].reachingDefs[0].offsetPC = offsetPC;
1086 ALOGI("single reaching def @ %d for VR %d %d", offsetPC, currentInfo.regNum, currentInfo.physicalType);
1159 currentBB->infoBasicBlock[indexToA].reachingDefs[k].offsetPC = offsetPC;
1170 currentBB->infoBasicBlock[indexToA].reachingDefs[k].offsetPC,
1242 if(currentInfo.reachingDefs[k].offsetPC != tmpInfo.reachingDefs[k2].offsetPC) {
1243 ALOGE("defs on the same VR %d %d with different offsetPC %d vs %d",
1245 currentInfo.reachingDefs[k].offsetPC, tmpInfo.reachingDefs[k2].offsetPC);
1273 currentInfo.reachingDefs[0].offsetPC = offsetPC;
1284 /* insert a definition at offsetPC to variable @ currentInfo */
1285 DefUsePair* ptr = insertADef(offsetPC, currentInfo.regNum, currentInfo.physicalType, REGACCESS_D);
1287 /* if access is define then use, insert a use at offsetPC */
1288 insertAUse(ptr, offsetPC, currentInfo.regNum, currentInfo.physicalType);
1297 /* insert a def currentInfo.reachingDefs[k] and a use of variable at offsetPC */
1315 /* insert a def at offsetPC to variable @ currentInfo */
1316 insertADef(offsetPC, currentInfo.regNum, currentInfo.physicalType, REGACCESS_D);
1321 //! insert a use at offsetPC of given variable at end of DefUsePair
1324 RegAccessType insertAUse(DefUsePair* ptr, int offsetPC, int regNum, LowOpndRegType physicalType) {
1330 tLink->offsetPC = offsetPC;
1353 DefUsePair* insertADef(int offsetPC, int regNum, LowOpndRegType pType, RegAccessType rType) {
1360 ptr->def.offsetPC = offsetPC;
1375 ALOGI("insert a def at %d to defUseTable for VR %d %d", offsetPC,
1393 theDef.offsetPC = PC_FOR_START_OF_BB;
1404 tableIndex = searchDefUseTable(theDef.offsetPC, theDef.regNum, theDef.physicalType);
1406 tableIndex = insertADef(theDef.offsetPC, theDef.regNum, theDef.physicalType, theDef.accessType);
1409 RegAccessType useType = insertAUse(tableIndex, offsetPC, currentInfo.regNum, currentInfo.physicalType);
1421 currentBB->xferPoints[k].offsetPC == offset &&
1428 currentBB->xferPoints[currentBB->num_xfer_points].offsetPC = offset;
1499 if(ptrUse->offsetPC != PC_FOR_END_OF_BB)
1513 insertLoadXfer(ptrUse->offsetPC,
1526 currentBB->xferPoints[currentBB->num_xfer_points].offsetPC = ptr->def.offsetPC;
1537 ALOGI("insert XFER %d at def %d: V%d %d", currentBB->num_xfer_points, ptr->def.offsetPC, ptr->def.regNum, defType);
1560 if(ptrUse->offsetPC != PC_FOR_END_OF_BB)
1566 if(ptrUse->offsetPC != PC_FOR_END_OF_BB)
1574 insertLoadXfer(ptrUse->offsetPC,
1584 insertLoadXfer(ptrUse->offsetPC,
1590 insertLoadXfer(ptrUse->offsetPC,
1606 currentBB->xferPoints[currentBB->num_xfer_points].offsetPC = ptr->def.offsetPC;
1618 ALOGI("insert XFER %d at def %d: V%d %d", currentBB->num_xfer_points, ptr->def.offsetPC, ptr->def.regNum, defType);
1632 currentBB->xferPoints[k].offsetPC, currentBB->xferPoints[k].regNum,
1657 ptr->uses->offsetPC = ptr->def.offsetPC;
1669 mergeLiveRange(indexL, ptr->def.offsetPC,
1670 ptrUse->offsetPC); //tableIndex, start PC, end PC
1676 mergeLiveRange(indexH, ptr->def.offsetPC,
1677 ptrUse->offsetPC);
2228 if(currentBB->xferPoints[k].offsetPC == offsetPC &&
2648 int furthestUse = offsetPC;
3084 //! search currentBB->defUseTable to find a def for regNum at offsetPC
3087 DefUsePair* searchDefUseTable(int offsetPC, int regNum, LowOpndRegType pType) {
3090 if(ptr->def.offsetPC == offsetPC &&
3103 ALOGI(" def @ %x of VR %d %d has %d uses", ptr->def.offsetPC,
3108 ALOGI(" use @ %x of VR %d %d accessType %d", ptr2->offsetPC,
3123 if(currentBB->xferPoints[k].offsetPC == offsetPC &&
3157 //update offsetPC, rPC & inst
3161 offsetPC = mir->seqNum;
3165 ALOGI("DSE: offsetPC %x", offsetPC);
3188 DefUsePair* indexT = searchDefUseTable(offsetPC, infoByteCode[k].regNum, infoByteCode[k].physicalType);
3191 offsetPC, infoByteCode[k].regNum, infoByteCode[k].physicalType);
3200 offsetPC, infoByteCode[k].regNum, infoByteCode[k].physicalType);
3208 ALOGI("DSE: stmt at %x is dead", offsetPC);
3210 deadPCs[num_dead_pc++] = offsetPC;
3212 } //for offsetPC
3242 if(ptrUse->offsetPC == deadPCs[k3]) {
3254 ALOGI("DSE: remove usage at offsetPC %d reached by def at %d", ptrUse->offsetPC,
3255 ptr->def.offsetPC);
3928 if(offsetPC >= ptr->start && offsetPC <= ptr->end) return true;
3951 if(offsetPC == ptr->end) return true;
3966 if(offsetPC == ptr->end) {
3981 if(offsetPC == ptr->end) {
4005 if(offsetPC >= ptr->start &&
4006 offsetPC <= ptr->end) {
4024 if(offsetPC >= ptr->start &&
4025 offsetPC <= ptr->end) {
4032 ALOGW("offsetPC %d not in live range of VR %d", offsetPC, compileTable[k].regNum+1);
4060 if(offsetPC == ptr->accessPC[num_access-2]) {
4083 if(offsetPC == ptr->accessPC[num_access-2]) return true;
4102 return offsetPC;
4105 int nextUse = offsetPC;
4108 if(ptr->start > offsetPC) {
4123 return offsetPC;
4125 int nextUse2 = offsetPC;
4128 if(ptr->start > offsetPC) {
4152 return offsetPC;
4155 int nextUse = offsetPC;
4158 if(offsetPC >= ptr->start &&
4159 offsetPC <= ptr->end) {
4160 /* offsetPC belongs to this live range */
4162 if(ptr->accessPC[k3] > offsetPC) {
4174 ALOGW("offsetPC %d not in live range of VR %d", offsetPC, compileTable[k].regNum);
4183 return offsetPC;
4185 int nextUse2 = offsetPC;
4188 if(offsetPC >= ptr->start &&
4189 offsetPC <= ptr->end) {
4191 if(ptr->accessPC[k3] > offsetPC) {
4202 if(!found) ALOGW("offsetPC %d not in live range of VR %d", offsetPC, compileTable[k].regNum+1);
4231 ALOGI("IN freeReg: VR %d offsetPC %x freecrit %d reachEnd %d nextToLast %d", compileTable[k].regNum, offsetPC, freeCrit, reachEnd, isNextToLastAccess(k));
4241 Fix: change free condition from freeCrit to (freeCrit && offsetPC != currentBB->pc_end)
4246 last bytecode of a live range && offsetPC != currentBB->pc_end
4249 typeC = ((freeCrit && offsetPC != currentBB->pc_end) ||
4280 and there exists a try block from offsetPC to the next live range
4283 if(existATryBlock(currentMethod, offsetPC, tmpPC)) dumpGL = true;
4727 ALOGI("[%x %d %d %d] ", bb->infoBasicBlock[jj].reachingDefs[k].offsetPC,