Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ Instruction *ModuleSanitizerCoverage::CreateGateBranch(Function &F,
// Set the branch weights in order to minimize the price paid when the
// gate is turned off, allowing the default enablement of this
// instrumentation with as little of a performance cost as possible
auto Weights = MDBuilder(*C).createBranchWeights(1, 100000);
auto Weights = MDBuilder(*C).createUnlikelyBranchWeights();
return SplitBlockAndInsertIfThen(FunctionGateCmp, IP, false, Weights);
}

Expand Down
Loading