[all-commits] [llvm/llvm-project] e9a27a: [OpenMPIRBuilder] Fix tripcount not a multiple of ...

Michael Kruse via All-commits all-commits at lists.llvm.org
Tue Aug 26 02:31:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9a27a3a7515eb9854588700a589912ee851c4e3
      https://github.com/llvm/llvm-project/commit/e9a27a3a7515eb9854588700a589912ee851c4e3
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    M clang/test/OpenMP/irbuilder_unroll_partial_factor_for.c
    M clang/test/OpenMP/irbuilder_unroll_partial_heuristic_constant_for.c
    M clang/test/OpenMP/irbuilder_unroll_partial_heuristic_runtime_for.c
    M clang/test/OpenMP/irbuilder_unroll_unroll_partial_factor.c
    M clang/test/OpenMP/irbuilder_unroll_unroll_partial_heuristic.c
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  [OpenMPIRBuilder] Fix tripcount not a multiple of tile size (#154999)

The emitted code tests whether the current tile should executing the
remainder iterations by checking the logical iteration number is the one
after the floor iterations that execute the non-remainder iterations.
There are two counts of how many iterations there are: Those of
non-remainder iterations (simply rounded-down division of tripcount and
tile size), and those including an additional floor iteration for the
remainder iterations. The code was used the wrong one that caused the
condition to never match.



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