File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15440,9 +15440,9 @@ void ScalarEvolution::LoopGuards::collectFromBlock(
15440
15440
// Bail out, unless we have a non-wrapping, monotonic range.
15441
15441
if (ExactRegion.isWrappedSet() || ExactRegion.isFullSet())
15442
15442
return false;
15443
- auto I = RewriteMap.find (LHSUnknown);
15444
- const SCEV *RewrittenLHS = I != RewriteMap.end() ? I->second : LHSUnknown ;
15445
- RewriteMap[LHSUnknown] = SE.getUMaxExpr(
15443
+ auto [I, Inserted] = RewriteMap.try_emplace (LHSUnknown);
15444
+ const SCEV *RewrittenLHS = Inserted ? LHSUnknown : I->second;
15445
+ I->second = SE.getUMaxExpr(
15446
15446
SE.getConstant(ExactRegion.getUnsignedMin()),
15447
15447
SE.getUMinExpr(RewrittenLHS,
15448
15448
SE.getConstant(ExactRegion.getUnsignedMax())));
You can’t perform that action at this time.
0 commit comments