[CodeGen] Skip null physical register in AntiDepBreaker (NFCI)
authorSergei Barannikov <barannikov88@gmail.com>
Wed, 24 May 2023 09:57:07 +0000 (12:57 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Thu, 25 May 2023 02:47:59 +0000 (05:47 +0300)
commit0f3efb8d7f3f0c96c82a98c12d2a26404116cc56
tree597984be6af61df75403638138d6220e33ecb216
parentdbbcfef64f0c189238dc2f93ff0edb56aa2eb680
[CodeGen] Skip null physical register in AntiDepBreaker (NFCI)

D151036 adds an assertions that prohibits iterating over sub- and
super-registers of a null register. This is already the case when
iterating over register units of a null register, and worked by
accident for sub- and super-registers.
The only place where the assertion is currently triggering is in
CriticalAntiDepBreaker::ScanInstruction. Other places are changed
in case new assertions are added and should be harmless otherwise.
llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp