[all-commits] [llvm/llvm-project] a668c0: [LoopPredication] Fix division by zero in case of ...

Danila Malyutin via All-commits all-commits at lists.llvm.org
Mon Sep 18 18:38:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a668c0f687f9029c3171c757e1fa5df891eb7558
      https://github.com/llvm/llvm-project/commit/a668c0f687f9029c3171c757e1fa5df891eb7558
  Author: Danila Malyutin <danilaml at users.noreply.github.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopPredication.cpp
    M llvm/test/Transforms/LoopPredication/pr66382.ll
    A llvm/test/Transforms/LoopPredication/scale.ll

  Log Message:
  -----------
  [LoopPredication] Fix division by zero in case of zero branch weights (#66506)

Treat the case where all branch weights are zero as if there was no
profile.
Fixes #66382




More information about the All-commits mailing list