[PATCH] D88865: [GISel] Add combine for constant G_PTR_ADD offsets.
Patrick Nappa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 5 18:43:56 PDT 2020
pnappa created this revision.
pnappa added a reviewer: hiraditya.
Herald added subscribers: llvm-commits, kristof.beyls.
Herald added a project: LLVM.
pnappa requested review of this revision.
This adds a single combine for GlobalISel to fold:
ptradd (inttoptr C1) C2
Into:
C1 + C2
Additionally, a small test for AArch64 is added.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88865
Files:
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/combine-ptradd-int2ptr.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88865.296342.patch
Type: text/x-patch
Size: 5779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201006/acffb495/attachment.bin>
More information about the llvm-commits
mailing list