[PATCH] D111403: [Inliner] Don't inline functions with incompatible vscale_range attributes

Cullen Rhodes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 05:35:50 PDT 2021


c-rhodes created this revision.
c-rhodes added reviewers: david-arm, paulwalker-arm, sdesmalen, craig.topper.
Herald added a subscriber: hiraditya.
c-rhodes requested review of this revision.
Herald added a project: LLVM.

Inlining a function with a vscale_range attribute that is more
restrictive than the caller's vscale_range could lead to incorrect
results, prevent it in the inliner.

Inlining a function with a less restrictive vscale_range into a function
with a more restrictive vscale_range is ok, and potentially profitable
since the compiler has more opportunity to optimise.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111403

Files:
  llvm/lib/Transforms/Utils/InlineFunction.cpp
  llvm/test/Transforms/Inline/inline-vscale-range.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111403.378184.patch
Type: text/x-patch
Size: 8984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/b6c1c465/attachment.bin>


More information about the llvm-commits mailing list