Skip to content

Commit

Permalink
Add -simplifycfg-branch-fold-threshold=0 flag to elminate LLVMs selec…
Browse files Browse the repository at this point in the history
…t instructions (cmov) optimisations. This gives extra coverage checkpoint in && chained conditionals
  • Loading branch information
DanBlackwell committed Aug 2, 2024
1 parent aef5d88 commit 8a216ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ impl FuzzProject {
let mut rustflags: String = "-Cpasses=sancov-module \
-Cllvm-args=-sanitizer-coverage-level=4 \
-Cllvm-args=-sanitizer-coverage-inline-8bit-counters \
-Cllvm-args=-sanitizer-coverage-pc-table"
-Cllvm-args=-sanitizer-coverage-pc-table \
-Cllvm-args=-simplifycfg-branch-fold-threshold=0"
.to_owned();

if !build.no_trace_compares {
Expand Down

0 comments on commit 8a216ad

Please sign in to comment.