[all-commits] [llvm/llvm-project] ff08c3: [SCEV] Compute trip multiple for multiple exit loops

Philip Reames via All-commits all-commits at lists.llvm.org
Wed May 26 11:52:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff08c3468fa4ba25384104206255f3648fd21fe9
      https://github.com/llvm/llvm-project/commit/ff08c3468fa4ba25384104206255f3648fd21fe9
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2021-05-26 (Wed, 26 May 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolution.h
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/tripmultiple_calculation.ll

  Log Message:
  -----------
  [SCEV] Compute trip multiple for multiple exit loops

This patch implements getSmallConstantTripMultiple(L) correctly for multiple exit loops. The previous implementation was both imprecise, and violated the specified behavior of the method. This was fine in practice, because it turns out the function was both dead in real code, and not tested for the multiple exit case.

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




More information about the All-commits mailing list