[LoopUnroll] Simplify optimization remarks
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 17 Jun 2021 19:03:50 +0000 (21:03 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Jun 2021 21:47:03 +0000 (23:47 +0200)
commit3308205ae9dd3b42e19b377157c642a04312f7fd
tree8e30f2d7777b2fa192000a3b5092fcf3fa6df38c
parentfb19aa0c74fdb864ddbd677a7b3585661966a098
[LoopUnroll] Simplify optimization remarks

Remove dependence on ULO.TripCount/ULO.TripMultiple from ORE and
debug code. For debug code, print information about all exits.
For optimization remarks, only include the unroll count and the
type of unroll (complete, partial or runtime), but omit detailed
information about exit folding, now that more than one exit may
be folded.

Differential Revision: https://reviews.llvm.org/D104482
llvm/lib/Transforms/Utils/LoopUnroll.cpp
llvm/test/CodeGen/AArch64/loop-micro-op-buffer-size-t99.ll
llvm/test/Transforms/LoopUnroll/loop-remarks-with-hotness.ll