]> granicus.if.org Git - llvm/commit
Force check prof branch_weights consistency in SwitchInstProfUpdateWrapper
authorYevgeny Rouban <yevgeny.rouban@azul.com>
Wed, 7 Aug 2019 07:17:45 +0000 (07:17 +0000)
committerYevgeny Rouban <yevgeny.rouban@azul.com>
Wed, 7 Aug 2019 07:17:45 +0000 (07:17 +0000)
commit608c99e6ad313214667861c8820e96308a248a62
tree206591bcc6794414fbe8fce95a70967d0f508cef
parent32251d6f422732a6bfc1d7de97ddb0eafd6ae7d9
Force check prof branch_weights consistency in SwitchInstProfUpdateWrapper

This patch turns on the prof branch_weights metadata consistency
check in SwitchInstProfUpdateWrapper.

If this patch causes a failure then please before reverting do report
the IR that hits the assertion and try identifying the pass that
introduces the inconsistency. We have to fix all such passes.

See also the upcoming change https://reviews.llvm.org/D61179
in the Verifier.

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

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