[all-commits] [llvm/llvm-project] e29a2e: [PowerPC][LoopVectorize] Extend getRegisterClassFo...

jsji via All-commits all-commits at lists.llvm.org
Mon Jan 6 10:53:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e29a2e6be4e114b4233a2e0feedb74b2f34cf782
      https://github.com/llvm/llvm-project/commit/e29a2e6be4e114b4233a2e0feedb74b2f34cf782
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2020-01-06 (Mon, 06 Jan 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
    M llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll

  Log Message:
  -----------
  [PowerPC][LoopVectorize] Extend getRegisterClassForType to consider double and other floating point type

In https://reviews.llvm.org/D67148, we use isFloatTy to test floating
point type, otherwise we return GPRRC.
So 'double' will be classified as GPRRC, which is not accurate.

This patch covers other floating point types.

Reviewed By: #powerpc, nemanjai

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




More information about the All-commits mailing list