[all-commits] [llvm/llvm-project] 6d0cfb: [PPC] Implement `areInlineCompatible` (#126562)

Henry Jiang via All-commits all-commits at lists.llvm.org
Mon Feb 24 14:54:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d0cfbc9c0e25f9e652f5f8b3bca2d7a0768619e
      https://github.com/llvm/llvm-project/commit/6d0cfbc9c0e25f9e652f5f8b3bca2d7a0768619e
  Author: Henry Jiang <h243jian at uwaterloo.ca>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
    M llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
    A llvm/test/Transforms/Inline/PowerPC/inline-target-attr.ll

  Log Message:
  -----------
  [PPC] Implement `areInlineCompatible` (#126562)

After the default implementation swap from
https://github.com/llvm/llvm-project/pull/117493, where
`areInlineCompatible` checks if the callee features are a subset of
caller features. This is not a safe assumption in general on PPC. We
fallback to check for strict feature set equality for now, and see what
improvements we can make.



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