This is an archive of the discontinued LLVM Phabricator instance.

Make the hardcoded Threshold value in capture tracking configurable via a hidden option
Needs RevisionPublic

Authored by pcwalton on Oct 6 2017, 3:17 PM.

Details

Summary

It was found that the Rust "serde" framework benefits from higher thresholds than the default value of 20. See discussion:

    
https://github.com/rust-lang/rust/issues/45068

I discussed with @sunfish about whether it was better to make this an option or fix the TODO, but I was told that the TODO is blocked on the new pass manager, so I went with this quick fix.

Please feel free to adjust reviewers as necessary. Thank you :)

Diff Detail

Event Timeline

pcwalton created this revision.Oct 6 2017, 3:17 PM
davide added a subscriber: davide.Oct 6 2017, 10:45 PM

I think this is fine for the current pass manager infrastructure. Can you please add a test?

whitequark requested changes to this revision.Oct 15 2017, 5:32 AM

Indeed, needs a test.

This revision now requires changes to proceed.Oct 15 2017, 5:32 AM