[llvm] [VPlan] Fix VPInstruction::AnyOf combine undoing freeze (PR #223640)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 03:16:14 PDT 2026


================
@@ -1741,9 +1741,15 @@ bool VPInstruction::usesFirstLaneOnly(const VPValue *Op) const {
     return Op == getOperand(1) || Op == getOperand(2);
   case Instruction::PHI:
     return true;
+  case Instruction::Select:
+    if (Op == getOperand(0) && Op != getOperand(1) && Op != getOperand(2) &&
----------------
david-arm wrote:

Why can't the condition also be an input operand?

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


More information about the llvm-commits mailing list