[all-commits] [llvm/llvm-project] 1c1082: [LoopVectorize] Fix divide-by-zero bug (#80836) (#...

David Sherwood via All-commits all-commits at lists.llvm.org
Wed Feb 14 08:08:03 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c10821022f1799452065fb57474e894e2562b7f
      https://github.com/llvm/llvm-project/commit/1c10821022f1799452065fb57474e894e2562b7f
  Author: David Sherwood <57997763+david-arm at users.noreply.github.com>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/low_trip_memcheck_cost.ll

  Log Message:
  -----------
  [LoopVectorize] Fix divide-by-zero bug (#80836) (#81721)

When attempting to use the estimated trip count to refine the costs of
the runtime memory checks we should also check for sane trip counts to
prevent divide-by-zero faults on some platforms.

Fixes #80836




More information about the All-commits mailing list