[llvm] cd16836 - [Safepoint Verifier] Add a missed comment to previous commit.

Serguei Katkov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 14 21:22:16 PST 2022


Author: Serguei Katkov
Date: 2022-02-15T12:21:33+07:00
New Revision: cd16836ce20bc7f278eac0e367060fb205a78b81

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

LOG: [Safepoint Verifier] Add a missed comment to previous commit.

Added: 
    

Modified: 
    llvm/lib/IR/SafepointIRVerifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/SafepointIRVerifier.cpp b/llvm/lib/IR/SafepointIRVerifier.cpp
index f77d43621ed8..4cc3334fbccd 100644
--- a/llvm/lib/IR/SafepointIRVerifier.cpp
+++ b/llvm/lib/IR/SafepointIRVerifier.cpp
@@ -358,6 +358,8 @@ static enum BaseType getBaseType(const Value *Val) {
       continue;
     }
     if (const auto *GCRelocate = dyn_cast<GCRelocateInst>(V)) {
+      // GCRelocates do not change null-ness or constant-ness of the value.
+      // So we can continue with derived pointer this instruction relocates.
       Worklist.push_back(GCRelocate->getDerivedPtr());
       continue;
     }


        


More information about the llvm-commits mailing list