[llvm] [VPlan] Extend CSE to eliminate GEPs (PR #156699)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 8 03:28:18 PDT 2025
================
@@ -1897,6 +1900,9 @@ class VPVectorPointerRecipe : public VPRecipeWithIRFlags,
VP_CLASSOF_IMPL(VPDef::VPVectorPointerSC)
+ /// This recipe primarily generates a GEP instruction.
+ unsigned getOpcode() const { return Instruction::GetElementPtr; }
----------------
fhahn wrote:
Hmm, but it has different semantics than a GEP, so we may incorrectly replace a plain GEP with a VPVectorPointer or the other way around?
https://github.com/llvm/llvm-project/pull/156699
More information about the llvm-commits
mailing list