[PATCH] D107588: [AArch64][GlobalISel] Make G_PTRTOINT only legal for s64 + p0
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 5 16:37:44 PDT 2021
paquette updated this revision to Diff 364650.
paquette retitled this revision from "[AArch64][GlobalISel] Widen G_PTRTOINT before clamping + test legalization" to "[AArch64][GlobalISel] Make G_PTRTOINT only legal for s64 + p0".
paquette edited the summary of this revision.
paquette added a comment.
Only allow s64.
I think that, running through to selection, this actually fixes a couple bugs too. (`ptrtoint_s16_p0` and `ptrtoint_s8_p0` were using `sub_32`???)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107588/new/
https://reviews.llvm.org/D107588
Files:
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-exceptions.ll
llvm/test/CodeGen/AArch64/GlobalISel/legalize-ptrtoint.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-int-ptr-casts.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107588.364650.patch
Type: text/x-patch
Size: 11179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210805/3886d799/attachment.bin>
More information about the llvm-commits
mailing list