This is an archive of the discontinued LLVM Phabricator instance.

[IR] Allow !range on vector of integer instructions
ClosedPublic

Authored by nikic on Mar 13 2023, 3:47 AM.

Details

Summary

Inspired by https://reviews.llvm.org/D144467#4188310, this allows !range on vector of integer instructions, with the usual element-wise interpretation, which is already used by all analysis APIs that support vectors.

Diff Detail

Event Timeline

nikic created this revision.Mar 13 2023, 3:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 3:47 AM
nikic requested review of this revision.Mar 13 2023, 3:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 3:47 AM
nlopes accepted this revision.Mar 13 2023, 4:25 AM

LGTM

This revision is now accepted and ready to land.Mar 13 2023, 4:25 AM
This revision was landed with ongoing or failed builds.Mar 14 2023, 1:42 AM
This revision was automatically updated to reflect the committed changes.
arsenm added a subscriber: arsenm.Mar 14 2023, 7:34 AM

This needs some codegen changes. We currently try to special case load-of-integer bitcast to vectors. Will need to update the MMO IR references to bitcast the ranges