Allow
%x:_<2 x p0> = G_INTTOPTR %y:_<2 x s64>
This shows up when building clang for AArch64 with GlobalISel.
Also show that we can select it.
This should match SDAG's behaviour: https://godbolt.org/z/33oqYoaYv
Paths
| Differential D105944
[AArch64][GlobalISel] Mark v2s64 -> v2p0 G_INTTOPTR as legal ClosedPublic Authored by paquette on Jul 13 2021, 3:26 PM.
Details Summary Allow %x:_<2 x p0> = G_INTTOPTR %y:_<2 x s64> This shows up when building clang for AArch64 with GlobalISel. Also show that we can select it. This should match SDAG's behaviour: https://godbolt.org/z/33oqYoaYv
Diff Detail
Event TimelineHerald added subscribers: danielkiss, hiraditya, kristof.beyls and 2 others. · View Herald TranscriptJul 13 2021, 3:26 PM This revision is now accepted and ready to land.Jul 13 2021, 3:56 PM This revision was landed with ongoing or failed builds.Jul 13 2021, 5:28 PM Closed by commit rG5bd7cc4f4248: [AArch64][GlobalISel] Mark v2s64 -> v2p0 G_INTTOPTR as legal (authored by paquette). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 358462 llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-inttoptr.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-int-ptr-casts.mir
|