This is an archive of the discontinued LLVM Phabricator instance.

Mark the llvm.vector.insert/extract intrinsics speculatable
ClosedPublic

Authored by dkreitzer on Jul 13 2022, 9:06 AM.

Details

Summary

This patch is the follow-up from this discourse topic.

The discourse thread has the explanation for why I believe this change to be correct, and I am hoping reviewers can agree on behalf of AArch64 & RISCV targets.

Another thing I noticed that I'd like to fix in a follow-up patch: The language reference claims that you cannot insert/extract a scalable vector into/from a fixed-width vector, but the verifier doesn't actually check this.

Diff Detail

Event Timeline

dkreitzer created this revision.Jul 13 2022, 9:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2022, 9:06 AM
dkreitzer requested review of this revision.Jul 13 2022, 9:06 AM
paulwalker-arm accepted this revision.Jul 13 2022, 9:54 AM
paulwalker-arm added a subscriber: paulwalker-arm.

I don't see anything contentious here from an AArch64 point of view but please wait for agreement from the RISCV folk.

This revision is now accepted and ready to land.Jul 13 2022, 9:54 AM
frasercrmck requested changes to this revision.Jul 14 2022, 8:17 AM

Sounds fine to me too. It looks like you need to fix https://reviews.llvm.org/harbormaster/unit/view/4419863/ before landing though.

This revision now requires changes to proceed.Jul 14 2022, 8:17 AM

Updated llvmir-intrinsics.mlir to reflect the change in intrinsic attributes.

Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jul 14 2022, 12:32 PM