[all-commits] [llvm/llvm-project] f58fbf: [X86][CodeGen] Add a dag pattern to fix #64323

Peter Rong via All-commits all-commits at lists.llvm.org
Wed Aug 23 10:50:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f58fbfc7467393955e35b147613bdec07a14ac63
      https://github.com/llvm/llvm-project/commit/f58fbfc7467393955e35b147613bdec07a14ac63
  Author: Peter Rong <PeterRong96 at gmail.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/X86/pr64323.ll

  Log Message:
  -----------
  [X86][CodeGen] Add a dag pattern to fix #64323

After recent patch D30189, #64323's error message become a new one.
When DAGCombiner was optimizing `(vextract (scalar_to_vector val, 0) -> val`, it didn't
consider the possibility that the inserted value type has less bit than the dest type.
This patch fixes that.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D158355




More information about the All-commits mailing list