Skip to content

Commit c64a098

Browse files
authored
[GVN] Fix after 46aac94
replaceUsersOf -> removeUsersOf
1 parent a608830 commit c64a098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/GVN.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ void GVNPass::eliminatePartiallyRedundantLoad(
14721472
// Perform PHI construction.
14731473
Value *V = ConstructSSAForLoadSet(Load, ValuesPerBlock, *this);
14741474
// ConstructSSAForLoadSet is responsible for combining metadata.
1475-
ICF->replaceUsersOf(Load);
1475+
ICF->removeUsersOf(Load);
14761476
Load->replaceAllUsesWith(V);
14771477
if (isa<PHINode>(V))
14781478
V->takeName(Load);

0 commit comments

Comments
 (0)