Rename GuaranteedARCOpts to MandatoryARCOpts.

This bleeds into the implementation where "guaranteed" is used
everywhere to talk about optimization of guaranteed values. We need to
use mandatory to indicate we're talking about the pass pipeline.
This commit is contained in:
Andrew Trick
2021-02-27 17:21:44 -08:00
parent cb1ed89c9a
commit b689b1dabe
14 changed files with 36 additions and 35 deletions

View File

@@ -321,7 +321,7 @@ static bool isWrittenTo(Context &ctx, LoadInst *load,
bool SemanticARCOptVisitor::visitLoadInst(LoadInst *li) {
// This optimization can use more complex analysis. We should do some
// experiments before enabling this by default as a guaranteed optimization.
if (ctx.onlyGuaranteedOpts)
if (ctx.onlyMandatoryOpts)
return false;
// If we are not supposed to perform this transform, bail.