[all-commits] [llvm/llvm-project] e2759f: [SCEV] Apply guards to max with non-unitary steps.

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu May 13 01:48:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2759f110b6e9a33db449ebdf428480f46db67b8
      https://github.com/llvm/llvm-project/commit/e2759f110b6e9a33db449ebdf428480f46db67b8
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-05-13 (Thu, 13 May 2021)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll

  Log Message:
  -----------
  [SCEV] Apply guards to max with non-unitary steps.

We already apply loop-guards when computing the maximum with unitary
steps. This extends the code to also do so when dealing with non-unitary
steps.

This allows us to infer a tighter maximum in some cases.

Reviewed By: nikic

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




More information about the All-commits mailing list