[all-commits] [llvm/llvm-project] f7c54c: [LoopUnroll] Fold all exits based on known trip co...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jun 17 11:58:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7c54c4603a2df8c0833f5ddc04a5e109bca1c14
      https://github.com/llvm/llvm-project/commit/f7c54c4603a2df8c0833f5ddc04a5e109bca1c14
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUnroll.cpp
    M llvm/test/Transforms/LoopUnroll/multiple-exits.ll
    M llvm/test/Transforms/LoopUnroll/nonlatchcondbr.ll

  Log Message:
  -----------
  [LoopUnroll] Fold all exits based on known trip count/multiple

Fold all exits based on known trip count/multiple information from
SCEV. Previously only the latch exit or the single exit were folded.

This doesn't yet eliminate ULO.TripCount and ULO.TripMultiple
entirely: They're still used to a) decide whether runtime unrolling
should be performed and b) for ORE remarks. However, the core
unrolling logic is independent of them now.

Differential Revision: https://reviews.llvm.org/D104203




More information about the All-commits mailing list