[all-commits] [llvm/llvm-project] 84e83b: [TargetLowering] Increase the storage size of NumR...

topperc via All-commits all-commits at lists.llvm.org
Wed Nov 13 12:21:03 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 84e83b54bd79734dfac5a74436f4dd80e4a34146
      https://github.com/llvm/llvm-project/commit/84e83b54bd79734dfac5a74436f4dd80e4a34146
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2019-11-13 (Wed, 13 Nov 2019)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/CodeGen/TargetLoweringBase.cpp

  Log Message:
  -----------
  [TargetLowering] Increase the storage size of NumRegistersForVT to allow the type break down for v256i1 and other types to be stored correctly

v256i1 on X86 without avx512 breaks down to 256 i8 values when passed between basic blocks. But the NumRegistersForVT was sized at a byte for each VT. This results in 256 being stored as 0.

This patch enlarges the type to 16 bits and adds an assert to ensure that no information is lost when the entry is stored.

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




More information about the All-commits mailing list