[DebugInfo][InstrRef][NFC] Bypass a frequently-noop loop
authorJeremy Morse <jeremy.morse@sony.com>
Tue, 1 Feb 2022 19:39:09 +0000 (19:39 +0000)
committerJeremy Morse <jeremy.morse@sony.com>
Tue, 1 Feb 2022 19:39:09 +0000 (19:39 +0000)
commit8e75536e510460bedcfdafb38d58cdfb7bb66111
tree1a515f3d6200f01f3929e9f74c0723885719d34a
parent3fab2d138e30c65249e1eaea6cc68b2b7f50955a
[DebugInfo][InstrRef][NFC] Bypass a frequently-noop loop

Bypass this loop if it would do nothing -- if there are no register masks
to be examined, there's no point looking at each location to see if the
location has been def'd. Awkwardly, this was responsible for almost an
entire half a percent of performance improvement on CTMark.

Differential Revision: https://reviews.llvm.org/D118613
llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp