[all-commits] [llvm/llvm-project] ac5a5a: [PowerPC] Add default handling for single element ...

Amy Kwan via All-commits all-commits at lists.llvm.org
Tue Feb 15 06:44:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac5a5a9cfe7c83ee5fbbc48118b4239e7e6cf6c9
      https://github.com/llvm/llvm-project/commit/ac5a5a9cfe7c83ee5fbbc48118b4239e7e6cf6c9
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    A llvm/test/CodeGen/PowerPC/p10-handle-split-promote-vec.ll

  Log Message:
  -----------
  [PowerPC] Add default handling for single element vectors, and split/promote vNi1 vectors.

This patch updates the handling of vectors in getPreferredVectorAction():

For single-element and scalable vectors, fall back to default vector legalization
handling. For vNi1 vectors, add handling to either split or promote them in
order to prevent the production of wide v256i1/v512i1 types.

The following assertion is fixed by this patch, as we ended up producing the
wide vector types (that are used for MMA) in the backend prior to this fix.

```
Assertion failed: VT.getSizeInBits() == Operand.getValueSizeInBits() &&
"Cannot BITCAST between types of different sizes!"
```

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




More information about the All-commits mailing list