[all-commits] [llvm/llvm-project] 02429c: [LV] Fix strict weak ordering violation in handleU...

Brian Cain via All-commits all-commits at lists.llvm.org
Sat Feb 14 21:06:00 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02429c46330fca6d057684aa05e1efd813fe0de3
      https://github.com/llvm/llvm-project/commit/02429c46330fca6d057684aa05e1efd813fe0de3
  Author: Brian Cain <brian.cain at oss.qualcomm.com>
  Date:   2026-02-14 (Sat, 14 Feb 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

  Log Message:
  -----------
  [LV] Fix strict weak ordering violation in handleUncountableEarlyExits sort (#181462)

The sort comparator used VPDT.dominates() which returns true for
dominates(A, A), violating the irreflexivity requirement of strict weak
ordering. With _GLIBCXX_DEBUG enabled (LLVM_ENABLE_EXPENSIVE_CHECKS=ON),
std::sort validates this property and aborts:

Error: comparison doesn't meet irreflexive requirements, assert(!(a <
a)).

Use properlyDominates() instead, which correctly returns false for equal
inputs while preserving the intended dominance-based ordering.

This fixes a crash introduced by ede1a9626b89 ("[LV] Vectorize early
exit loops with multiple exits.").



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