]> granicus.if.org Git - llvm/commit
Make SwitchInstProfUpdateWrapper strict permanently
authorYevgeny Rouban <yevgeny.rouban@azul.com>
Thu, 12 Sep 2019 03:41:34 +0000 (03:41 +0000)
committerYevgeny Rouban <yevgeny.rouban@azul.com>
Thu, 12 Sep 2019 03:41:34 +0000 (03:41 +0000)
commit8be236c9f9d3cf3fdd9406eb705abecc70a2da1e
tree372a5c6357b259e5823edb6d9af7b5aacd02e311
parenta841034e829958bea192cff1d81a9406bed593b7
Make SwitchInstProfUpdateWrapper strict permanently

We have been using -switch-inst-prof-update-wrapper-strict
set to true by default for some time. It is time to remove
the safety stuff and make SwitchInstProfUpdateWrapper
intolerant to inconsistencies in !prof branch_weights
metadata of SwitchInst.

This patch gets rid of the Invalid state of
SwitchInstProfUpdateWrapper and the option
-switch-inst-prof-update-wrapper-strict. So there is only
two states: changed and unchanged.

Reviewers: davidx, nikic, eraman, reames, chandlerc
Reviewed By: davidx
Differential Revision: https://reviews.llvm.org/D67435

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371707 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp