[all-commits] [llvm/llvm-project] ec210f: [LoopFuse] Ensure inner loops are in loop simplifi...

MengXuan Cai via All-commits all-commits at lists.llvm.org
Fri Nov 11 12:58:36 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec210f394233798c531b52b43ac3ff4354339bb0
      https://github.com/llvm/llvm-project/commit/ec210f394233798c531b52b43ac3ff4354339bb0
  Author: Mengxuan Cai <mengxuan.cai at huawei.com>
  Date:   2022-11-11 (Fri, 11 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopFuse.cpp
    M llvm/test/Transforms/LoopFusion/ensure_loop_simplify_form.ll

  Log Message:
  -----------
  [LoopFuse] Ensure inner loops are in loop simplified form under new PM

LoopInfo doesn't give all loops in a loop nest, it gives top level loops
only. While isLoopSimplifyForm() only checkes for the outter most loop of a
loop nest. As a result, inner loops that are not in simplied form can
not be simplified with the original code.

Reviewed By: aeubanks

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




More information about the All-commits mailing list