[all-commits] [llvm/llvm-project] 80304c: [LoopUnroll] Always respect user unroll pragma

Whitney Tsang via All-commits all-commits at lists.llvm.org
Mon Apr 11 11:33:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80304c5f88f02cb189f6777313fdea146fcc595a
      https://github.com/llvm/llvm-project/commit/80304c5f88f02cb189f6777313fdea146fcc595a
  Author: Whitney Tsang <whitneyt at ca.ibm.com>
  Date:   2022-04-11 (Mon, 11 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
    M llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll

  Log Message:
  -----------
  [LoopUnroll] Always respect user unroll pragma

IMO when user provide unroll pragma, compiler should always respect it.
It is not clear to me why loop unroll pass currently ensure that the
unrolled loop size is limited by PragmaUnrollThreshold.

Reviewed By: Meinersbur

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




More information about the All-commits mailing list