[all-commits] [llvm/llvm-project] ec7f07: [SelectionDAG] Remove redundant asserts in WidenVe...

jofrn via All-commits all-commits at lists.llvm.org
Thu May 28 04:20:46 PDT 2026


  Branch: refs/heads/users/jofrn/atomic-load-asserts
  Home:   https://github.com/llvm/llvm-project
  Commit: ec7f079fa6384a75c6ece225c4943bb293ff057a
      https://github.com/llvm/llvm-project/commit/ec7f079fa6384a75c6ece225c4943bb293ff057a
  Author: jofrn <165626406+jofrn at users.noreply.github.com>
  Date:   2026-05-28 (Thu, 28 May 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

  Log Message:
  -----------
  [SelectionDAG] Remove redundant asserts in WidenVecRes_ATOMIC_LOAD

These asserts duplicate guarantees already provided elsewhere:
- isVector() checks are redundant because findMemType() calls
  WidenVT.getVectorElementType() and WidenVT.isScalableVector()
  internally, and WidenVecRes_ATOMIC_LOAD is only reached from the
  ATOMIC_LOAD case in WidenVectorResult, which is the vector path.
- The element-type and scalability consistency between LdVT and
  WidenVT is a property of GetWidenedVector / getTypeToTransformTo.



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