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.
1388 // Below, check if CurrentDef is a valid candidate to be eliminated by
1390 MemoryDef *CurrentDef = cast<MemoryDef>(Current);
1391 Instruction *CurrentI = CurrentDef->getMemoryInst();
1393 if (canSkipDef(CurrentDef, !isInvisibleToCallerOnUnwind(KillingUndObj))) {
1461 // CurrentDef is the earliest write clobber of KillingDef. Use it as
1462 // optimized access. Do not optimize if CurrentDef is already the
1464 if (CurrentDef != KillingDef->getDefiningAccess() &&
1466 KillingDef->setOptimized(CurrentDef);