Lines Matching refs:liveMap
162 static bool isUseSpeciallyKnownDead(OpOperand &use, LiveMap &liveMap) { in isUseSpeciallyKnownDead() argument
179 return !liveMap.wasProvenLive(*arg); in isUseSpeciallyKnownDead()
185 static void processValue(Value value, LiveMap &liveMap) { in processValue() argument
187 if (isUseSpeciallyKnownDead(use, liveMap)) in processValue()
189 return liveMap.wasProvenLive(use.getOwner()); in processValue()
192 liveMap.setProvedLive(value); in processValue()
204 static void propagateLiveness(Region ®ion, LiveMap &liveMap);
206 static void propagateTerminatorLiveness(Operation *op, LiveMap &liveMap) { in propagateTerminatorLiveness() argument
208 liveMap.setProvedLive(op); in propagateTerminatorLiveness()
215 liveMap.setProvedLive(arg); in propagateTerminatorLiveness()
224 liveMap.setProvedLive(arg); in propagateTerminatorLiveness()
228 static void propagateLiveness(Operation *op, LiveMap &liveMap) { in propagateLiveness() argument
234 propagateLiveness(region, liveMap); in propagateLiveness()
238 return propagateTerminatorLiveness(op, liveMap); in propagateLiveness()
242 liveMap.setProvedLive(op); in propagateLiveness()
246 processValue(value, liveMap); in propagateLiveness()
248 return liveMap.wasProvenLive(value); in propagateLiveness()
251 liveMap.setProvedLive(op); in propagateLiveness()
254 static void propagateLiveness(Region ®ion, LiveMap &liveMap) { in propagateLiveness() argument
262 propagateLiveness(&op, liveMap); in propagateLiveness()
264 processValue(value, liveMap); in propagateLiveness()
269 LiveMap &liveMap) { in eraseTerminatorSuccessorOperands() argument
291 if (!liveMap.wasProvenLive(successor->getArgument(arg))) in eraseTerminatorSuccessorOperands()
298 LiveMap &liveMap) { in deleteDeadness() argument
314 eraseTerminatorSuccessorOperands(block->getTerminator(), liveMap); in deleteDeadness()
318 succeeded(deleteDeadness(childOp.getRegions(), liveMap)); in deleteDeadness()
319 if (!liveMap.wasProvenLive(&childOp)) { in deleteDeadness()
332 if (!liveMap.wasProvenLive(block.getArgument(e - i - 1))) { in deleteDeadness()
359 LiveMap liveMap; in runRegionDCE() local
361 liveMap.resetChanged(); in runRegionDCE()
364 propagateLiveness(region, liveMap); in runRegionDCE()
365 } while (liveMap.hasChanged()); in runRegionDCE()
367 return deleteDeadness(regions, liveMap); in runRegionDCE()