[all-commits] [llvm/llvm-project] ccd4e7: [LSR] Make OptimizeLoopTermCond able to handle som...

John Brawn via All-commits all-commits at lists.llvm.org
Wed Dec 3 07:29:08 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ccd4e7b1ed3858c64b4667787929b939513bc929
      https://github.com/llvm/llvm-project/commit/ccd4e7b1ed3858c64b4667787929b939513bc929
  Author: John Brawn <john.brawn at arm.com>
  Date:   2025-12-03 (Wed, 03 Dec 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    M llvm/test/CodeGen/AArch64/complex-deinterleaving-reductions-predicated-scalable.ll
    A llvm/test/Transforms/LoopStrengthReduce/AArch64/non-cmp-cond.ll

  Log Message:
  -----------
  [LSR] Make OptimizeLoopTermCond able to handle some non-cmp conditions (#165590)

Currently OptimizeLoopTermCond can only convert a cmp instruction to
using a postincrement induction variable, which means it can't handle
predicated loops where the termination condition comes from
get_active_lane_mask. Relax this restriction so that we can handle any
kind of instruction, though only if it's the instruction immediately
before the branch (except for possibly an extractelement).



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