Lines Matching defs:CurrentDef
21 // 3. For each found CurrentDef, check that:
22 // 1. There are no barrier instructions between CurrentDef and StartDef (like
24 // 2. StartDef is executed whenever CurrentDef is executed.
25 // 3. StartDef completely overwrites CurrentDef.
26 // 4. Erase CurrentDef from the function and MemorySSA.
1486 // Below, check if CurrentDef is a valid candidate to be eliminated by
1488 MemoryDef *CurrentDef = cast<MemoryDef>(Current);
1489 Instruction *CurrentI = CurrentDef->getMemoryInst();
1491 if (canSkipDef(CurrentDef, !isInvisibleToCallerOnUnwind(KillingUndObj))) {
1559 // CurrentDef is the earliest write clobber of KillingDef. Use it as
1560 // optimized access. Do not optimize if CurrentDef is already the
1562 if (CurrentDef != KillingDef->getDefiningAccess() &&
1564 KillingDef->setOptimized(CurrentDef);