[all-commits] [llvm/llvm-project] 03da07: [LoopUtils] Saturate at INT_MAX when estimating TC...

Ramkumar Ramachandra via All-commits all-commits at lists.llvm.org
Wed Mar 5 10:20:01 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03da079968845e1f1312d09ff4e2ecee1933552e
      https://github.com/llvm/llvm-project/commit/03da079968845e1f1312d09ff4e2ecee1933552e
  Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
  Date:   2025-03-05 (Wed, 05 Mar 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/low_trip_memcheck_cost.ll

  Log Message:
  -----------
  [LoopUtils] Saturate at INT_MAX when estimating TC (#129683)

getLoopEstimatedTripCount returns std::nullopt when the trip count would
overflow the return type, but since it is an estimate anyway, we might
as well saturate at UINT_MAX, improving results.



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