[all-commits] [llvm/llvm-project] 96515d: [PowerPC] Fix the check for scalar MASS conversion

Masoud Ataei Jaliseh via All-commits all-commits at lists.llvm.org
Wed Jul 6 11:44:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96515df816ebc3af2a632669a26374745e98b0c5
      https://github.com/llvm/llvm-project/commit/96515df816ebc3af2a632669a26374745e98b0c5
  Author: Masoud Ataei <msd.ataei at gmail.com>
  Date:   2022-07-06 (Wed, 06 Jul 2022)

  Changed paths:
    A clang/test/CodeGen/lower-mass-end-to-end.c
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCISelLowering.h

  Log Message:
  -----------
  [PowerPC] Fix the check for scalar MASS conversion

Proposing to move the check for scalar MASS conversion from constructor
of PPCTargetLowering to the lowerLibCallBase function which decides
about the lowering.

The Target machine option Options.PPCGenScalarMASSEntries is set in
PPCTargetMachine.cpp. But an object of the class PPCTargetLowering
is created in one of the included header files. So, the constructor will run
before setting PPCGenScalarMASSEntries to correct value. So, we cannot
check this option in the constructor.

Differential: https://reviews.llvm.org/D128653
Reviewer: @bmahjour




More information about the All-commits mailing list