[all-commits] [llvm/llvm-project] 00fcc0: [SCEV] Fix incorrect loop exit count analysis.

ChenMd via All-commits all-commits at lists.llvm.org
Wed Jan 27 03:37:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00fcc036873164029d30819354fa923b7254cd81
      https://github.com/llvm/llvm-project/commit/00fcc036873164029d30819354fa923b7254cd81
  Author: Mindong Chen <chenmindong1 at huawei.com>
  Date:   2021-01-27 (Wed, 27 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/incorrect-exit-count.ll

  Log Message:
  -----------
  [SCEV] Fix incorrect loop exit count analysis.

In computeLoadConstantCompareExitLimit, the addrec used to compute the
exit count should be from the loop which the exiting block belongs to.

Reviewed by: mkazantsev

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




More information about the All-commits mailing list