[all-commits] [llvm/llvm-project] da8ce5: [HEXAGON] Fix corner cases for hwloops pass (#135439)

aankit-ca via All-commits all-commits at lists.llvm.org
Mon Apr 14 11:03:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da8ce56c53fe6e34809ba0b310fa90257e230a89
      https://github.com/llvm/llvm-project/commit/da8ce56c53fe6e34809ba0b310fa90257e230a89
  Author: aankit-ca <quic_aankit at quicinc.com>
  Date:   2025-04-14 (Mon, 14 Apr 2025)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
    A llvm/test/CodeGen/Hexagon/hwloop-dist-check.mir
    M llvm/test/CodeGen/Hexagon/swp-phi-start.ll

  Log Message:
  -----------
  [HEXAGON] Fix corner cases for hwloops pass (#135439)

Add check to make sure Dist > 0 or Dist < 0 for appropriate cmp cases to
hexagon hardware loops pass. The change modifies the
HexagonHardwareLoops pass to add runtime checks to make sure that
end_value > initial_value for less than comparisons and end_value <
initial_value for greater than comparisons.

Fix for https://github.com/llvm/llvm-project/issues/133241

@androm3da @iajbar PTAL

---------

Co-authored-by: aankit-quic <aankit at quicinc.com>



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