[PATCH] D62126: [CorrelatedValuePropagation] Fix prof branch_weights metadata handling for SwitchInst

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 07:36:50 PDT 2019


yrouban updated this revision to Diff 201533.
yrouban edited the summary of this revision.
yrouban added a comment.

- renamed //SwitchInstProfBranchWeightsWrapper// to //SwitchInstProfUpdateWrapper//
- explicitly narrowed scope of the //SwitchInstProfUpdateWrapper// object so it does not overlap with //ConstantFoldTerminator()//
- added a test case where switch turns into conditional branch


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62126/new/

https://reviews.llvm.org/D62126

Files:
  llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  llvm/test/Transforms/CorrelatedValuePropagation/profmd.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62126.201533.patch
Type: text/x-patch
Size: 9423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190527/20ac55c7/attachment.bin>


More information about the llvm-commits mailing list