[all-commits] [llvm/llvm-project] 088a81: [DAGCombiner] Use `getAnyExtOrTrunc` instead of TR...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Thu Oct 27 23:33:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 088a81682444839e58ed5deaad50175d956db777
      https://github.com/llvm/llvm-project/commit/088a81682444839e58ed5deaad50175d956db777
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/AMDGPU/dagcombine-v1i8-extractvecelt-crash.ll

  Log Message:
  -----------
  [DAGCombiner] Use `getAnyExtOrTrunc` instead of TRUNCATE in ExtractVectorElt combine

ScalarVT isn't guaranteed to be smaller than the BCSrc.

Reviewed By: arsenm

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




More information about the All-commits mailing list