[all-commits] [llvm/llvm-project] c6ac71: [Attributor] Allow multiple uses of a casted funct...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Feb 19 18:56:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c6ac717aa70d3f31c0a4fd6385e8baaa9f3e2724
      https://github.com/llvm/llvm-project/commit/c6ac717aa70d3f31c0a4fd6385e8baaa9f3e2724
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/IPConstantProp/arg-count-mismatch.ll
    M llvm/test/Transforms/Attributor/IPConstantProp/arg-type-mismatch.ll
    M llvm/test/Transforms/Attributor/callbacks.ll

  Log Message:
  -----------
  [Attributor] Allow multiple uses of a casted function pointer

If a function pointer is casted into a different type the resulting
expression can be a constant. If so, it can be used multiple times which
cannot be handled by the AbstractCallSite constructor alone. Instead, we
follow the cast expression uses now explicitly during the call site
traversal.




More information about the All-commits mailing list