[PATCH] D62122: [NFC] Introduce SwitchInst wrapper for prof branch_weights handling

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 19 23:54:42 PDT 2019


yrouban created this revision.
yrouban added reviewers: davidxl, eraman, reames, chandlerc.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This patch introduces a wrapper class that re-implements several mutator methods of //SwitchInst// to handle changes of prof branch_weights metadata along with remove/add switch case methods.
Subsequent patches will use this wrapper to implement prof branch_weights metadata handling for //SwitchInst//.

This patch is a redesigned way of prof branch_weights handling proposed in D60554 <https://reviews.llvm.org/D60554> and D60604 <https://reviews.llvm.org/D60604>. It does not change contract of SwitchInst.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62122

Files:
  llvm/include/llvm/IR/Instructions.h
  llvm/lib/IR/Instructions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62122.200206.patch
Type: text/x-patch
Size: 5800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190520/31d00c86/attachment.bin>


More information about the llvm-commits mailing list