[PATCH] D28593: Update loop branch_weight metadata after loop rotation.

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 11 19:24:02 PST 2017


trentxintong created this revision.
trentxintong added reviewers: mkuper, davidxl, danielcdh, hfinkel, mzolotukhin, anemet.
trentxintong added a subscriber: llvm-commits.

Update loop branch_weight metadata after loop rotation.

In case we have branch_weight in the unrotated loop header, we update
it after rotation, more specifically we update the branch in the guard
block and the branch in the rotated latch block.


https://reviews.llvm.org/D28593

Files:
  lib/IR/Metadata.cpp
  lib/Transforms/Scalar/LoopRotation.cpp
  test/Transforms/LoopRotate/loop-rotate-pgo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28593.84068.patch
Type: text/x-patch
Size: 8642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170112/9f547779/attachment.bin>


More information about the llvm-commits mailing list