[llvm] r368129 - Force check prof branch_weights consistency in SwitchInstProfUpdateWrapper
Yevgeny Rouban via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 00:17:45 PDT 2019
Author: yrouban
Date: Wed Aug 7 00:17:45 2019
New Revision: 368129
URL: http://llvm.org/viewvc/llvm-project?rev=368129&view=rev
Log:
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
Modified:
llvm/trunk/lib/IR/Instructions.cpp
Modified: llvm/trunk/lib/IR/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Instructions.cpp?rev=368129&r1=368128&r2=368129&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Instructions.cpp (original)
+++ llvm/trunk/lib/IR/Instructions.cpp Wed Aug 7 00:17:45 2019
@@ -49,7 +49,7 @@ static cl::opt<bool> SwitchInstProfUpdat
"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
More information about the llvm-commits
mailing list