[llvm] [GVN] Improve processBlock for instruction erasure (PR #131753)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 13:52:10 PDT 2025


================
@@ -877,6 +876,12 @@ void GVNPass::printPipeline(
   OS << '>';
 }
 
+void GVNPass::doInstructionDeletion(Instruction *I) {
----------------
nikic wrote:

>From the name, it's not really obvious what the difference between removeInstruction and doInstructionDeletion is. Maybe call this salvageAndRemoveInstruction?

https://github.com/llvm/llvm-project/pull/131753


More information about the llvm-commits mailing list