[all-commits] [llvm/llvm-project] 2f51a1: [Hexagon] Fix inner CONCAT_VECTORS type in combine...

Fateme Hosseini via All-commits all-commits at lists.llvm.org
Mon Apr 13 10:52:55 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f51a1664da90ae5be3f9c8532d59517a67829e3
      https://github.com/llvm/llvm-project/commit/2f51a1664da90ae5be3f9c8532d59517a67829e3
  Author: Fateme Hosseini <Fhossein at qti.qualcomm.com>
  Date:   2026-04-13 (Mon, 13 Apr 2026)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
    A llvm/test/CodeGen/Hexagon/hvx-concat-scalar-preds.ll

  Log Message:
  -----------
  [Hexagon] Fix inner CONCAT_VECTORS type in combineConcatOfScalarPreds (#191756)

The inner CONCAT_VECTORS result type was hardcoded to MVT::v8i1, which
is only correct when BitBytes == 1. Otherwise, the inner concat produces
fewer elements than 8, causing an assertion failure:

Assertion `(Ops[0].getValueType().getVectorElementCount() * Ops.size())
  == VT.getVectorElementCount() && "Incorrect element count in vector
  concatenation!"' failed.

Fix by computing the inner vector type dynamically based on BitBytes.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list