[llvm] [VPlan] Enable CSE of VPWidenPHIRecipe. (PR #207573)
Owen Anderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 09:51:46 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:
Per the function comment, shouldn't this be `std::make_pair(false, Instruction::PHI);`?
https://github.com/llvm/llvm-project/pull/207573
More information about the llvm-commits
mailing list