[PATCH] D11605: [LoopUnswitch] Add block frequency analysis to recognize hot/cold regions

Chen Li via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 13:08:41 PDT 2015


chenli updated this revision to Diff 32087.
chenli added a comment.

Update patch to fix the following issues:

1. Use standalone BFI without relying on the wrapper pass.
2. Use the hottest block (loop header in this case) to determine the loop's hotness.
3. Update the non-trivial condition test case to have effect of code growth.

I also plan to have a follow-up patch to introduce function_entry_count to hot/cold region detection.


http://reviews.llvm.org/D11605

Files:
  lib/Transforms/Scalar/LoopUnswitch.cpp
  test/Transforms/LoopUnswitch/cold-loop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11605.32087.patch
Type: text/x-patch
Size: 4547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150813/5fd7e33a/attachment.bin>


More information about the llvm-commits mailing list