This is an archive of the discontinued LLVM Phabricator instance.

Fixed assertion in SROA if block has ho successors
ClosedPublic

Authored by rampitec on Jun 11 2020, 10:53 AM.

Details

Summary

BasicBlock::isLegalToHoistInto() asserts if block does not
have successors. The case is degenarate but assertion still
needs to be avoided.

https://bugs.llvm.org/show_bug.cgi?id=46280

Diff Detail

Event Timeline

rampitec created this revision.Jun 11 2020, 10:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2020, 10:53 AM
arsenm added inline comments.Jun 11 2020, 2:23 PM
llvm/lib/Transforms/Scalar/SROA.cpp
3484

succ_empty?

rampitec updated this revision to Diff 270241.Jun 11 2020, 2:49 PM
rampitec marked an inline comment as done.
arsenm accepted this revision.Jun 11 2020, 2:57 PM
This revision is now accepted and ready to land.Jun 11 2020, 2:57 PM
This revision was automatically updated to reflect the committed changes.