diff options
author | Yevgeny Rouban <yevgeny.rouban@azul.com> | 2019-08-07 07:17:45 +0000 |
---|---|---|
committer | Yevgeny Rouban <yevgeny.rouban@azul.com> | 2019-08-07 07:17:45 +0000 |
commit | cb87f3734b0a554a7d3d3b2d47eb885a6d1a9bf8 (patch) | |
tree | 9ba8b94c0d772acdb2876f27f6eab8b22b3fcbbe /llvm | |
parent | 371bdc9b7f25e6cde1d24c4e290eab3a973831e4 (diff) | |
download | bcm5719-llvm-cb87f3734b0a554a7d3d3b2d47eb885a6d1a9bf8.tar.gz bcm5719-llvm-cb87f3734b0a554a7d3d3b2d47eb885a6d1a9bf8.zip |
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
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/IR/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 2e7cad103c1..eb2f8827b11 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -49,7 +49,7 @@ static cl::opt<bool> SwitchInstProfUpdateWrapperStrict( "switch-inst-prof-update-wrapper-strict", cl::Hidden, cl::desc("Assert that prof branch_weights metadata is valid when creating " "an instance of SwitchInstProfUpdateWrapper"), - cl::init(false)); + cl::init(true)); //===----------------------------------------------------------------------===// // AllocaInst Class |