[all-commits] [llvm/llvm-project] 752fea: [SCCP] Add range metadata to call sites with known...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jul 21 02:14:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 752fea7c27b66b7d34925335541f843eb46f16d6
      https://github.com/llvm/llvm-project/commit/752fea7c27b66b7d34925335541f843eb46f16d6
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-07-21 (Tue, 21 Jul 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SCCP.cpp
    M llvm/test/Transforms/SCCP/ip-add-range-to-call.ll

  Log Message:
  -----------
  [SCCP] Add range metadata to call sites with known return ranges.

If we inferred a range for the function return value, we can add !range
at all call-sites of the function, if the range does not include undef.

Reviewers: efriedma, davide, nikic

Reviewed By: efriedma

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




More information about the All-commits mailing list