This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Use an empty LostDebugLocObserver when building with NDEBUG.
AbandonedPublic

Authored by aemerson on Apr 29 2021, 2:32 PM.

Details

Reviewers
dsanders
paquette
Summary

Since this is an assertion-like feature, it shouldn't be run without NDEBUG. Saves a small amount of compile time.

Diff Detail

Event Timeline

aemerson created this revision.Apr 29 2021, 2:32 PM
aemerson requested review of this revision.Apr 29 2021, 2:32 PM
aemerson abandoned this revision.Apr 29 2021, 2:49 PM

Actually this seems to be already disabled on release builds, but my sampling was catching the empty set checks in analyzeDebugLocations(). Not a big enough deal to worry about.