[all-commits] [llvm/llvm-project] ee5d5e: [funcattrs] Use callsite param attributes from ind...

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Dec 22 18:23:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee5d5e19f99db863fc3037eb125d8cfce3b2c5d8
      https://github.com/llvm/llvm-project/commit/ee5d5e19f99db863fc3037eb125d8cfce3b2c5d8
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2021-12-22 (Wed, 22 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionAttrs.cpp
    M llvm/test/Transforms/FunctionAttrs/readattrs.ll

  Log Message:
  -----------
  [funcattrs] Use callsite param attributes from indirect calls when inferring access attributes

Arguments to an indirect call is by definition outside the SCC, but there's no reason we can't use locally defined facts on the call site. This also has the nice effect of further simplifying the code.

Differential Revision: https://reviews.llvm.org/D116118




More information about the All-commits mailing list