[all-commits] [llvm/llvm-project] cc999c: [MIPS] Fix lowering of irregular vector arguments

LemonBoy via All-commits all-commits at lists.llvm.org
Thu Mar 11 10:56:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc999c9546e54bc8fdab852fb5e45db4cb17a618
      https://github.com/llvm/llvm-project/commit/cc999c9546e54bc8fdab852fb5e45db4cb17a618
  Author: LemonBoy <thatlemon at gmail.com>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    M llvm/test/CodeGen/Mips/cconv/vector.ll

  Log Message:
  -----------
  [MIPS] Fix lowering of irregular vector arguments

The code deciding how to split the vector in register-sized integers used the integer division operator, thus rounding down the result.
Correct the computation for irregularly-sized types (non-power-of-two, non multiple of 8) by rounding the division result upwards.

Reviewed By: atanasyan

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




More information about the All-commits mailing list