This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Fix invalid INSERT_SUBVECTOR creation when lowering fixed length fp-int conversions.
ClosedPublic

Authored by paulwalker-arm on Jan 22 2023, 4:46 AM.

Details

Summary

The original logic resulted in inserting an integer vector into
a floating point one and vice versa. Patch also adds the missing
assert that would have caught the issue.

Diff Detail

Event Timeline

paulwalker-arm created this revision.Jan 22 2023, 4:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
paulwalker-arm requested review of this revision.Jan 22 2023, 4:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 4:46 AM

I'm not aware of any invalid code generation that results from this bug, hence no new tests. However, I can confirm that with the new assert there are several lit test failures (CodeGen/AArch64/*-length-fp-to-int.ll) that are fixed by the changes to AArch64ISelLowering.cpp.

Matt added a subscriber: Matt.Jan 22 2023, 7:29 PM
peterwaller-arm accepted this revision.Jan 23 2023, 4:03 AM
This revision is now accepted and ready to land.Jan 23 2023, 4:03 AM