This is a follow-up patch to D130999. In the test, the MIR contains an unreachable MBB but the code attempts to look it up in MLocs. This patch fixes this issue by checking for the default-constructed value.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60,040 ms | x64 debian > libFuzzer.libFuzzer::value-profile-load.test |
Event Timeline
Comment Actions
Fix and test LGTM, much appreciated.
An alternative might be to identify unreachable blocks in depthFirstVLocAndEmit's EjectBlock lambda, and not do any work for them. It might be non-trivial to identify unreachable blocks, so this fix is fine.