[PATCH] D36401: TTI: Use a better default for areInlineCompatibl

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 08:07:12 PDT 2017


arsenm created this revision.
Herald added subscribers: kristof.beyls, eraman, Anastasia, tpr, javed.absar, nhaehnle, wdng, aemerson.

AArch64 and X86 do the exact same thing for this.
Rather than requiring the target-cpu exactly matches,
if target info is available check subtarget features.

      

Fixes not inlining OpenCL library functions on AMDGPU,
which don't have an explicitly set target-cpu.


https://reviews.llvm.org/D36401

Files:
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  lib/Target/AArch64/AArch64TargetTransformInfo.h
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.h
  test/Transforms/Inline/AMDGPU/inline-target-cpu.ll
  test/Transforms/Inline/AMDGPU/lit.local.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36401.109999.patch
Type: text/x-patch
Size: 7140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170807/18f004dc/attachment.bin>


More information about the llvm-commits mailing list