[PATCH] D53554: [Argument Promotion] Only promote args when function attributes are compatible

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 12 17:06:14 PST 2018


tstellar updated this revision to Diff 173787.
tstellar added a comment.

Add a new callback function areFunctionArgsABICompatible for the ArgumentPromotion
pass to use.  @echristo I'm still a little confused about what to do with
functionsHaveCompatibleAttributes, should I just leave it as is, or use this new
callback?


Repository:
  rL LLVM

https://reviews.llvm.org/D53554

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Transforms/IPO/ArgumentPromotion.cpp
  test/Transforms/ArgumentPromotion/X86/attributes.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53554.173787.patch
Type: text/x-patch
Size: 9919 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181113/75e249d4/attachment.bin>


More information about the llvm-commits mailing list