[all-commits] [llvm/llvm-project] ddb3b2: [LV] Consider Loop Unroll Hints When Making Interl...

Bardia Mahjour via All-commits all-commits at lists.llvm.org
Wed Apr 28 14:28:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddb3b26a12694a61611223eb3a84532762cbe4b8
      https://github.com/llvm/llvm-project/commit/ddb3b26a12694a61611223eb3a84532762cbe4b8
  Author: Bardia Mahjour <bmahjour at ca.ibm.com>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/no_fpmath.ll
    M llvm/test/Transforms/LoopVectorize/explicit_outer_detection.ll
    A llvm/test/Transforms/LoopVectorize/nounroll.ll

  Log Message:
  -----------
  [LV] Consider Loop Unroll Hints When Making Interleave Decisions

This patch causes the loop vectorizer to not interleave loops that have
nounroll loop hints (llvm.loop.unroll.disable and llvm.loop.unroll_count(1)).
Note that if a particular interleave count is being requested
(through llvm.loop.interleave_count), it will still be honoured, regardless
of the presence of nounroll hints.

Reviewed By: Meinersbur

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




More information about the All-commits mailing list