[llvm] 466ff3e - [VPlan] Mark VPIRInstruction::getInstruction) as const (NFCI).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 13:21:12 PST 2024


Author: Florian Hahn
Date: 2024-11-25T21:20:56Z
New Revision: 466ff3ed70e50343c9617de318e1b40efa03529d

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

LOG: [VPlan] Mark VPIRInstruction::getInstruction) as const (NFCI).

Split off from https://github.com/llvm/llvm-project/pull/114292.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 747fcb068cfb34..984fe0a799660f 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1412,7 +1412,7 @@ class VPIRInstruction : public VPRecipeBase {
   InstructionCost computeCost(ElementCount VF,
                               VPCostContext &Ctx) const override;
 
-  Instruction &getInstruction() { return I; }
+  Instruction &getInstruction() const { return I; }
 
 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
   /// Print the recipe.


        


More information about the llvm-commits mailing list