[all-commits] [llvm/llvm-project] 89adc2: [HEXAGON] Fix corner cases for hwloops pass (#135439)
aankit-ca via All-commits
all-commits at lists.llvm.org
Fri Apr 25 16:23:10 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 89adc2d4f93b0f9dea251286bbb6561c7d7e7b0b
https://github.com/llvm/llvm-project/commit/89adc2d4f93b0f9dea251286bbb6561c7d7e7b0b
Author: aankit-ca <quic_aankit at quicinc.com>
Date: 2025-04-25 (Fri, 25 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>
(cherry picked from commit da8ce56c53fe6e34809ba0b310fa90257e230a89)
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