[llvm] [VPlan] Enable CSE of VPWidenPHIRecipe. (PR #207573)

Owen Anderson via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 09:54:14 PDT 2026


================
@@ -1256,6 +1256,9 @@ getOpcodeOrIntrinsicID(const VPSingleDefRecipe *R) {
       .Case<VPInstruction, VPWidenRecipe, VPWidenCastRecipe, VPWidenGEPRecipe,
             VPReplicateRecipe>(
           [](auto *I) { return std::make_pair(false, I->getOpcode()); })
+      .Case([](const VPWidenPHIRecipe *I) {
+        return std::make_pair(true, Instruction::PHI);
----------------
resistor wrote:

Confirmed locally that making this change fixes the crash I'm seeing.

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


More information about the llvm-commits mailing list