Skip to content

Commit

Permalink
[GVN] Fix after 46aac94
Browse files Browse the repository at this point in the history
replaceUsersOf -> removeUsersOf
  • Loading branch information
chsigg authored Oct 5, 2023
1 parent a608830 commit c64a098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Scalar/GVN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ void GVNPass::eliminatePartiallyRedundantLoad(
// Perform PHI construction.
Value *V = ConstructSSAForLoadSet(Load, ValuesPerBlock, *this);
// ConstructSSAForLoadSet is responsible for combining metadata.
ICF->replaceUsersOf(Load);
ICF->removeUsersOf(Load);
Load->replaceAllUsesWith(V);
if (isa<PHINode>(V))
V->takeName(Load);
Expand Down

0 comments on commit c64a098

Please sign in to comment.