[all-commits] [llvm/llvm-project] 68b7cb: [LoopIdiom] Update strlen idiom body loop conditio...

Henry Jiang via All-commits all-commits at lists.llvm.org
Fri Apr 11 09:56:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68b7cba2b04a036dfb2e216cfafe70a83fbc7530
      https://github.com/llvm/llvm-project/commit/68b7cba2b04a036dfb2e216cfafe70a83fbc7530
  Author: Henry Jiang <h243jian at uwaterloo.ca>
  Date:   2025-04-11 (Fri, 11 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    A llvm/test/Transforms/LoopIdiom/strlen-cleanup.ll
    M llvm/test/Transforms/LoopIdiom/strlen.ll
    M llvm/test/Transforms/LoopIdiom/wcslen16.ll
    M llvm/test/Transforms/LoopIdiom/wcslen32.ll

  Log Message:
  -----------
  [LoopIdiom] Update strlen idiom body loop condition to be clean up by LoopDeletion (#134906)

Fixes the case where subsequent passes were unable to find and delete
the invariant loop left over by the strlen idiom conversion. Since
`loop-deletion` only operate on computable loops, we can update the loop
condition to something more easily picked up by `loop-deletion`

As pointed out in https://github.com/llvm/llvm-project/issues/134736



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