Skip to content

Commit cb87f37

Browse files
author
Yevgeny Rouban
committedAug 7, 2019
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 llvm-svn: 368129
1 parent 371bdc9 commit cb87f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/lib/IR/Instructions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static cl::opt<bool> SwitchInstProfUpdateWrapperStrict(
4949
"switch-inst-prof-update-wrapper-strict", cl::Hidden,
5050
cl::desc("Assert that prof branch_weights metadata is valid when creating "
5151
"an instance of SwitchInstProfUpdateWrapper"),
52-
cl::init(false));
52+
cl::init(true));
5353

5454
//===----------------------------------------------------------------------===//
5555
// AllocaInst Class

0 commit comments

Comments
 (0)
Please sign in to comment.