[all-commits] [llvm/llvm-project] 1eaa17: [LoopInterchange] Bail out early if minimum loop n...

Madhur Amilkanthwar via All-commits all-commits at lists.llvm.org
Mon Nov 18 20:28:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1eaa17975dc568cff4fe31a79c0d147ef5c55301
      https://github.com/llvm/llvm-project/commit/1eaa17975dc568cff4fe31a79c0d147ef5c55301
  Author: Madhur Amilkanthwar <madhura at nvidia.com>
  Date:   2024-11-19 (Tue, 19 Nov 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    A llvm/test/Transforms/LoopInterchange/bail-out-one-loop.ll

  Log Message:
  -----------
  [LoopInterchange] Bail out early if minimum loop nest is not met (#115128)

This patch bails out early if minimum depth
is not met. As it stands today, the pass computes
CacheCost before it attempts to do the transform.
This is not needed if minimum depth is not met.
This handles basic cases where depth is typically 1.

As the patch avoids unnecessary computation, it is aimed to improve
compile-time.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list