[all-commits] [llvm/llvm-project] ff6254: [Attributor][FIX] Handle non-pointers when followi...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Jan 23 16:43:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ff6254dc2679d06174cb13ef5a79da1835461cd5
      https://github.com/llvm/llvm-project/commit/ff6254dc2679d06174cb13ef5a79da1835461cd5
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-01-23 (Thu, 23 Jan 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/nocapture-1.ll
    M llvm/test/Transforms/Attributor/readattrs.ll

  Log Message:
  -----------
  [Attributor][FIX] Handle non-pointers when following uses

When we follow uses, e.g., in AAMemoryBehavior or AANoCapture, we need
to make sure the value is a pointer before we ask for abstract
attributes only valid for pointers. This happens because we follow
pointers through calls that do not capture but may return the value.




More information about the All-commits mailing list