[all-commits] [llvm/llvm-project] 21a1b4: [LoopUnroll] Remove `UseUpperBound` output paramet...

Justin Fargnoli via All-commits all-commits at lists.llvm.org
Thu Mar 5 08:42:46 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21a1b4c1d748dc5e9742bfae2b35c4d9fc9e0b19
      https://github.com/llvm/llvm-project/commit/21a1b4c1d748dc5e9742bfae2b35c4d9fc9e0b19
  Author: Justin Fargnoli <jfargnoli at nvidia.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/UnrollLoop.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
    M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

  Log Message:
  -----------
  [LoopUnroll] Remove `UseUpperBound` output parameter from `computeUnrollCount` (NFC) (#184526)

`UseUpperBound` is only ever read by `UnrollAndJamPass.cpp`'s
`computeUnrollAndJamCount()`. However, `computeUnrollAndJamCount()` also
sets `MaxTripCount` to `0` which
[disables](https://github.com/llvm/llvm-project/blob/928505c98345e0494f2d260788adb291efc9ee38/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp#L1017)
the only case that could set `UseUpperBound`.

Since there are no callers that need the result of `UseUpperBound`,
remove it.



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