[all-commits] [llvm/llvm-project] a2ddb0: [LoopInterchange] Don't consider loops with BTC=0 ...

Sjoerd Meijer via All-commits all-commits at lists.llvm.org
Wed Nov 19 05:13:57 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2ddb020d76cdb1c5708cf3dadd2c46866202707
      https://github.com/llvm/llvm-project/commit/a2ddb020d76cdb1c5708cf3dadd2c46866202707
  Author: Sjoerd Meijer <smeijer at nvidia.com>
  Date:   2025-11-19 (Wed, 19 Nov 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    A llvm/test/Transforms/LoopInterchange/loopnest-with-outer-btc0.ll
    M llvm/test/Transforms/LoopInterchange/pr43326.ll
    M llvm/test/Transforms/LoopInterchange/pr57148.ll
    A llvm/test/Transforms/LoopInterchange/zero-btc.ll

  Log Message:
  -----------
  [LoopInterchange] Don't consider loops with BTC=0 (#167113)

Do not consider loops with a zero backedge taken count as candidates for
interchange. This seems like a sensible thing because it suggests the loop
doesn't execute and there is no point in interchanging. As a bonus, this
seems to avoid triggering an assert about phis and their uses from source
code, so this is a partial fix for #163954 but it needs more work to properly
fix that.



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