[all-commits] [llvm/llvm-project] 011f25: [NFC][IRCE] Add unit test to show room for improve...

Aleksandr Popov via All-commits all-commits at lists.llvm.org
Tue Nov 7 04:06:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 011f25a4e010e0cf675f697ea5860b2fdd548e45
      https://github.com/llvm/llvm-project/commit/011f25a4e010e0cf675f697ea5860b2fdd548e45
  Author: Aleksandr Popov <42888396+aleks-tmb at users.noreply.github.com>
  Date:   2023-11-07 (Tue, 07 Nov 2023)

  Changed paths:
    A llvm/test/Transforms/IRCE/compound-loop-bound.ll

  Log Message:
  -----------
  [NFC][IRCE] Add unit test to show room for improvement (#71506)

Add tests for compound loop bounds where IRCE is possible

if (K > 0 && M > 0)
  for (i = 0; i < min(K, M); i++) {...}

if (K > 0 && M > 0)
  for (i = min(K, M); i >= 0; i--) {...}

Co-authored-by: Aleksander Popov <apopov at azul.com>




More information about the All-commits mailing list