Follow the usual usage pattern for this function and return the
result.
continue;
// Just use that PHI instead then.
++NumPHICSEs;
- replaceInstUsesWith(PN, &Src);
- return &PN;
+ return replaceInstUsesWith(PN, &Src);
}
}
PHI->addIncoming(SourceAggregates[Pred], Pred);
++NumAggregateReconstructionsSimplified;
- replaceInstUsesWith(OrigIVI, PHI);
-
- // Just signal that the fold happened, we've already inserted instructions.
- return &OrigIVI;
+ return replaceInstUsesWith(OrigIVI, PHI);
}
/// Try to find redundant insertvalue instructions, like the following ones: