[all-commits] [llvm/llvm-project] 18b409: [mlir] [scf-to-cf] attach the loop annotation to l...

Menooker via All-commits all-commits at lists.llvm.org
Tue Jul 8 21:07:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18b409558a9936cc7367f9cc59eaae4867a31e2b
      https://github.com/llvm/llvm-project/commit/18b409558a9936cc7367f9cc59eaae4867a31e2b
  Author: Menooker <myjisgreat at live.cn>
  Date:   2025-07-09 (Wed, 09 Jul 2025)

  Changed paths:
    M mlir/lib/Conversion/SCFToControlFlow/SCFToControlFlow.cpp
    M mlir/test/Conversion/SCFToControlFlow/convert-to-cfg.mlir

  Log Message:
  -----------
  [mlir] [scf-to-cf] attach the loop annotation to latch block (#147462)

As [required by LLVM](https://llvm.org/docs/LangRef.html#llvm-loop), the
loop annotation (loop metadata) should be attached on the ["latch"
block](https://llvm.org/docs/LoopTerminology.html). Otherwise, the
annotation might be ignored by LLVM. This PR fixes this issue.



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