[all-commits] [llvm/llvm-project] 25bcc8: [GlobalISel][Legalizer] Fix minScalarEltSameAsIf t...

Amara Emerson via All-commits all-commits at lists.llvm.org
Mon Sep 12 16:01:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25bcc8c7974e80d6d39ccd359c9b5beb09fa7694
      https://github.com/llvm/llvm-project/commit/25bcc8c7974e80d6d39ccd359c9b5beb09fa7694
  Author: Amara Emerson <amara at apple.com>
  Date:   2022-09-13 (Tue, 13 Sep 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
    M llvm/unittests/CodeGen/GlobalISel/LegalizerInfoTest.cpp

  Log Message:
  -----------
  [GlobalISel][Legalizer] Fix minScalarEltSameAsIf to handle p0 element types.

The mutation the action generates tries to change the input type into the
element type of larger vector type. This doesn't work if the larger element
type is a vector of pointers since it creates an illegal mutation between
scalar and pointer types.

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


  Commit: f24f46922310d191119516eda9c25cebb797bd15
      https://github.com/llvm/llvm-project/commit/f24f46922310d191119516eda9c25cebb797bd15
  Author: Amara Emerson <amara at apple.com>
  Date:   2022-09-13 (Tue, 13 Sep 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-select.mir

  Log Message:
  -----------
  [GlobalISel] Fix crash when lowering G_SELECT of pointer vectors.

The bit masking lowering only works for vectors of scalars, so for pointer
element types we need to add some casting.

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


Compare: https://github.com/llvm/llvm-project/compare/540d054b121d...f24f46922310


More information about the All-commits mailing list