[all-commits] [llvm/llvm-project] e84b2f: [LV][NFCI]Use integer for cost/trip count calculat...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Apr 16 06:48:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e84b2fb48df882ee1f49bbbca29d44fba22192a8
      https://github.com/llvm/llvm-project/commit/e84b2fb48df882ee1f49bbbca29d44fba22192a8
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2024-04-16 (Tue, 16 Apr 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/vectorize-force-tail-with-evl.ll

  Log Message:
  -----------
  [LV][NFCI]Use integer for cost/trip count calculations instead of double, fix possible UB.

Using fp type in the compiler is not the best idea, here it used with
the comparison for equal to 0 and may cause undefined behavior in some
cases.

Reviewers: fhahn

Reviewed By: fhahn

Pull Request: https://github.com/llvm/llvm-project/pull/87241



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