This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fix legalization of i128 ctpop without neon
ClosedPublic

Authored by nikic on Dec 26 2020, 12:37 PM.

Details

Summary

If neon is disabled, LowerCTPOP will return SDValue() to indicate that normal legalization will be used. However, ReplaceNodeResults does not check for this and pushes the empty SDValue() onto the result vector, which will subsequently result in a crash.

Diff Detail

Event Timeline

nikic created this revision.Dec 26 2020, 12:37 PM
nikic requested review of this revision.Dec 26 2020, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 26 2020, 12:37 PM
dmgreen accepted this revision.Dec 27 2020, 12:38 AM
dmgreen added a subscriber: dmgreen.

LGTM. Thanks.

This revision is now accepted and ready to land.Dec 27 2020, 12:38 AM
paulwalker-arm accepted this revision.Dec 27 2020, 2:24 AM
This revision was automatically updated to reflect the committed changes.