[all-commits] [llvm/llvm-project] f34ded: [LoopPeel] Support min/max intrinsics in loop peel...

Sergey Kachkov via All-commits all-commits at lists.llvm.org
Fri May 31 03:58:32 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f34dedbf44a0578430f81de94f294f4474fee0fb
      https://github.com/llvm/llvm-project/commit/f34dedbf44a0578430f81de94f294f4474fee0fb
  Author: Sergey Kachkov <109674256+skachkov-sc at users.noreply.github.com>
  Date:   2024-05-31 (Fri, 31 May 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopPeel.cpp
    M llvm/test/Transforms/LoopUnroll/peel-loop-min-max-intrinsics.ll

  Log Message:
  -----------
  [LoopPeel] Support min/max intrinsics in loop peeling (#93162)

This patch adds processing of min/max intrinsics in LoopPeel in the
similar way as it was done for conditional statements: for
min/max(IterVal, BoundVal) we peel iterations where IterVal < BoundVal
for monotonically increasing IterVal; for monotonically decreasing
IterVal we peel iterations where IterVal > BoundVal (strict comparision
predicates are used to minimize number of peeled iterations).



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