[llvm] [VPlan] Extend CSE to eliminate GEPs (PR #156699)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 02:48:37 PDT 2025


================
@@ -1903,6 +1906,8 @@ class VPVectorPointerRecipe : public VPRecipeWithIRFlags,
 
   void execute(VPTransformState &State) override;
 
+  Type *getIndexedType() const { return IndexedTy; }
----------------
fhahn wrote:

For consistency, should this be `getSourceElementType`, as with IR GEP?

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


More information about the llvm-commits mailing list