This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix assertion failure when zcmp extension is enabled.
AbandonedPublic

Authored by anmolparalkar-nxp on Aug 22 2023, 4:32 PM.

Details

Reviewers
None
Summary

Before accessing "getOpcode" thorugh machine instruction, check if the
iterator has reached the end of Machine basic block otherwise we will
crash at the assertion !NodePtr->isKnownSentinel().

The above assertion is hit in "Prologue/Epilogue Insertion & Frame
Finalization pass".

Merged in test case from D158379.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2023, 4:32 PM
anmolparalkar-nxp requested review of this revision.Aug 22 2023, 4:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2023, 4:32 PM
anmolparalkar-nxp abandoned this revision.Aug 22 2023, 4:33 PM