[all-commits] [llvm/llvm-project] c36e2e: [Attributor][NFCI] Avoid unnecessary work except f...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Nov 1 22:29:23 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c36e2ebf9ff5fa869bd5717616e71a0d406d0306
      https://github.com/llvm/llvm-project/commit/c36e2ebf9ff5fa869bd5717616e71a0d406d0306
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2019-11-02 (Sat, 02 Nov 2019)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/FunctionAttrs/align.ll
    M llvm/test/Transforms/FunctionAttrs/arg_nocapture.ll
    M llvm/test/Transforms/FunctionAttrs/arg_returned.ll
    M llvm/test/Transforms/FunctionAttrs/callbacks.ll
    M llvm/test/Transforms/FunctionAttrs/dereferenceable.ll
    M llvm/test/Transforms/FunctionAttrs/fn_noreturn.ll
    M llvm/test/Transforms/FunctionAttrs/heap_to_stack.ll
    M llvm/test/Transforms/FunctionAttrs/internal-noalias.ll
    M llvm/test/Transforms/FunctionAttrs/liveness.ll
    M llvm/test/Transforms/FunctionAttrs/misc.ll
    M llvm/test/Transforms/FunctionAttrs/new_attributes.ll
    M llvm/test/Transforms/FunctionAttrs/noalias_returned.ll
    M llvm/test/Transforms/FunctionAttrs/nocapture.ll
    M llvm/test/Transforms/FunctionAttrs/nofree-attributor.ll
    M llvm/test/Transforms/FunctionAttrs/nonnull.ll
    M llvm/test/Transforms/FunctionAttrs/norecurse.ll
    M llvm/test/Transforms/FunctionAttrs/noreturn_async.ll
    M llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll
    M llvm/test/Transforms/FunctionAttrs/nosync.ll
    M llvm/test/Transforms/FunctionAttrs/nounwind.ll
    M llvm/test/Transforms/FunctionAttrs/read_write_returned_arguments_scc.ll
    M llvm/test/Transforms/FunctionAttrs/readattrs.ll
    M llvm/test/Transforms/FunctionAttrs/value-simplify.ll
    M llvm/test/Transforms/FunctionAttrs/willreturn.ll

  Log Message:
  -----------
  [Attributor][NFCI] Avoid unnecessary work except for testing

Trying to deduce information for declarations and calls sites of
declarations is not useful in practice but only for testing. Add a flag
that disables this by default but also enable it in the tests.

The misc.ll test will verify the flag "works" as expected.




More information about the All-commits mailing list