This is an archive of the discontinued LLVM Phabricator instance.

[Hexagon] Check if register is non-null before calling subregs_inclusive
ClosedPublic

Authored by barannikov88 on May 24 2023, 9:53 PM.

Details

Summary

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.

Diff Detail

Event Timeline

barannikov88 created this revision.May 24 2023, 9:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 9:53 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
barannikov88 requested review of this revision.May 24 2023, 9:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 9:53 PM

This is a workaround to fix these failures (caused D151036 to be reverted):
https://lab.llvm.org/buildbot/#/builders/38/builds/12037

This patch preserves the behavior, NFCI.
It should probably skip debug instructions instead, but I don't know how to prepare test for that.

kparzysz accepted this revision.Jun 3 2023, 10:47 AM

Sorry, I missed this. LGTM, thanks!

This revision is now accepted and ready to land.Jun 3 2023, 10:47 AM
This revision was landed with ongoing or failed builds.Jun 4 2023, 2:40 AM
This revision was automatically updated to reflect the committed changes.