[all-commits] [llvm/llvm-project] 0447d7: [RISCV] Don't construct a subtarget for function d...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Sep 16 14:12:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0447d7932f2717904877a157738fef5057765a3d
      https://github.com/llvm/llvm-project/commit/0447d7932f2717904877a157738fef5057765a3d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVPromoteConstant.cpp

  Log Message:
  -----------
  [RISCV] Don't construct a subtarget for function declarations in RISCVPromoteConstant. (#224115)

Intrinsic declarations in particular don't have a target-features
attribute so the subtarget constructor may print warning like:

hard-float 'd' ABI can't be used for a target that doesn't support the D
instruction set extension

This can occur in LTO builds in -mcpu is not passed to the clang driver
on the LTO step. The target-machine won't have any CPU features.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list