[llvm] 856c463 - [CodeGenPrepare] Fix modification status bug

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 26 00:31:49 PDT 2023


Author: Aiden Grossman
Date: 2023-08-26T00:31:40-07:00
New Revision: 856c4638395148f73cc63b27de059bed5662a211

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

LOG: [CodeGenPrepare] Fix modification status bug

This was exposed in https://reviews.llvm.org/D158250 in
CodeGen/X86/statepoint-stack-usage.ll. There was no update to the
modification status in this section.

Co-Authored-By: nikic

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D158898

Added: 
    

Modified: 
    llvm/lib/CodeGen/CodeGenPrepare.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index e44682fc21f710..194a98e75bd72d 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -1200,6 +1200,7 @@ simplifyRelocatesOffABase(GCRelocateInst *RelocatedBase,
       if (RI->getStatepoint() == RelocatedBase->getStatepoint())
         if (RI->getBasePtrIndex() == RelocatedBase->getBasePtrIndex()) {
           RelocatedBase->moveBefore(RI);
+          MadeChange = true;
           break;
         }
 


        


More information about the llvm-commits mailing list