[llvm] c64a098 - [GVN] Fix after https://github.com/llvm/llvm-project/commit/46aac949bcfef83d03bffd849955c84c6a8e7c31

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 02:31:39 PDT 2023


Author: Christian Sigg
Date: 2023-10-05T11:31:35+02:00
New Revision: c64a098ee43b0c16aad7d411a89633859d6f10d8

URL: https://github.com/llvm/llvm-project/commit/c64a098ee43b0c16aad7d411a89633859d6f10d8
DIFF: https://github.com/llvm/llvm-project/commit/c64a098ee43b0c16aad7d411a89633859d6f10d8.diff

LOG: [GVN] Fix after https://github.com/llvm/llvm-project/commit/46aac949bcfef83d03bffd849955c84c6a8e7c31

replaceUsersOf -> removeUsersOf

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/GVN.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 6a97137be3f5a34..4c5b0ff3af16e53 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -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);


        


More information about the llvm-commits mailing list