This is an archive of the discontinued LLVM Phabricator instance.

[VP] IR expansion for inttoptr/ptrtoint
ClosedPublic

Authored by Miss_Grape on Sep 7 2023, 2:38 AM.

Details

Summary

Add basic handling for VP ops that can expand to cast intrinsics

Diff Detail

Event Timeline

Miss_Grape created this revision.Sep 7 2023, 2:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2023, 2:38 AM
Miss_Grape requested review of this revision.Sep 7 2023, 2:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2023, 2:38 AM
RKSimon added inline comments.Sep 7 2023, 2:45 AM
llvm/test/CodeGen/X86/expand-vp-cast-intrinsics.ll
6

Do we need 32-bit coverage as well?

; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+avx      | FileCheck %s --check-prefixes=X86
Miss_Grape added inline comments.Sep 7 2023, 6:01 AM
llvm/test/CodeGen/X86/expand-vp-cast-intrinsics.ll
6

How about the test with ’-mtriple=i686-unknown-unknown‘

RKSimon added inline comments.Sep 7 2023, 6:07 AM
llvm/test/CodeGen/X86/expand-vp-cast-intrinsics.ll
6

Sure a base level i686 test would be useful to show scalarization, but itd be useful to see a vector case as well

Miss_Grape updated this revision to Diff 556142.Sep 7 2023, 6:44 AM

Add 686 test

Miss_Grape marked an inline comment as done.Sep 7 2023, 6:45 AM
Miss_Grape marked an inline comment as done.Sep 7 2023, 7:53 PM
RKSimon accepted this revision.Sep 8 2023, 7:40 AM

LGTM - cheers

This revision is now accepted and ready to land.Sep 8 2023, 7:40 AM