Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,8 +1679,8 @@ ChangeStatus AAPointerInfoFloating::updateImpl(Attributor &A) {
if (auto *PHI = dyn_cast<PHINode>(Usr)) {
// Note the order here, the Usr access might change the map, CurPtr is
// already in it though.
bool IsFirstPHIUser = !OffsetInfoMap.count(PHI);
auto &UsrOI = OffsetInfoMap[PHI];
auto [PhiIt, IsFirstPHIUser] = OffsetInfoMap.try_emplace(PHI);
auto &UsrOI = PhiIt->second;
auto &PtrOI = OffsetInfoMap[CurPtr];

// Check if the PHI operand has already an unknown offset as we can't
Expand Down
Loading