We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bc7932 + bd15595 commit ab34c46Copy full SHA for ab34c46
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
@@ -1103,10 +1103,8 @@ class WidenIV {
1103
1104
void updatePostIncRangeInfo(Value *Def, Instruction *UseI, ConstantRange R) {
1105
DefUserPair Key(Def, UseI);
1106
- auto It = PostIncRangeInfos.find(Key);
1107
- if (It == PostIncRangeInfos.end())
1108
- PostIncRangeInfos.insert({Key, R});
1109
- else
+ auto [It, Inserted] = PostIncRangeInfos.try_emplace(Key, R);
+ if (!Inserted)
1110
It->second = R.intersectWith(It->second);
1111
}
1112
0 commit comments