[llvm] [LV] Simplify extract-lane with scalar operand to the scalar value itself. (PR #174534)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 13:00:46 PST 2026


================
@@ -291,7 +291,9 @@ struct Recipe_match {
       return false;
 
     if (R->getNumOperands() != std::tuple_size<Ops_t>::value) {
-      assert(Opcode == Instruction::PHI &&
+      assert((Opcode == Instruction::PHI ||
----------------
fhahn wrote:

do we still need the special case?

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


More information about the llvm-commits mailing list