[llvm] [VPlan] Assign custom opcodes to recipes not mapping to IR opcodes. (PR #162267)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 04:54:10 PDT 2025


================
@@ -2005,12 +2012,9 @@ struct VPCSEDenseMapInfo : public DenseMapInfo<VPSingleDefRecipe *> {
   static bool canHandle(const VPSingleDefRecipe *Def) {
     // We can extend the list of handled recipes in the future,
     // provided we account for the data embedded in them while checking for
-    // equality or hashing. We assign VPVectorEndPointerRecipe the GEP opcode,
-    // as it is essentially a GEP with different semantics.
-    auto C = isa<VPVectorPointerRecipe>(Def)
-                 ? std::make_pair(false, Instruction::GetElementPtr)
-                 : getOpcodeOrIntrinsicID(Def);
+    // equality or hashing.
 
+    auto C = getOpcodeOrIntrinsicID(Def);
----------------
artagnon wrote:

```suggestion
    auto C = getOpcodeOrIntrinsicID(Def);

```

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


More information about the llvm-commits mailing list