[all-commits] [llvm/llvm-project] 5cab29: [SelectionDAG] Fix result index and vector width i...

Demetrios Chiuratto Agourakis via All-commits all-commits at lists.llvm.org
Fri Sep 25 15:53:28 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5cab2963e13496c272a482145b11796e9e26eeb4
      https://github.com/llvm/llvm-project/commit/5cab2963e13496c272a482145b11796e9e26eeb4
  Author: Demetrios Chiuratto Agourakis <demetrios at agourakis.med.br>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
    M llvm/test/CodeGen/X86/llvm.frexp.ll

  Log Message:
  -----------
  [SelectionDAG] Fix result index and vector width in unrollExpandedOp (#225886)

Fixes #224127.

In `DAGTypeLegalizer::WidenVectorResult`, `unrollExpandedOp` computes
the unroll count and widened vector type from the result being legalized
(`ResNo`) rather than unconditionally using result 0. For multi-result
nodes where result types differ (e.g. `ISD::FFREXP`), this prevents
mismatched vector widths and preserves the correct result index from
`DAG.UnrollVectorOp`.

Assisted-by: Claude

---------

Co-authored-by: Demetrios Chiuratto Agourakis <agourakis82 at gmail.com>



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