[PATCH] D72351: [AArch64][GlobalISel] Fold a chain of two G_PTR_ADDs of constant offsets.
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 11:02:23 PST 2020
aemerson created this revision.
aemerson added reviewers: paquette, dsanders.
aemerson added a project: LLVM.
Herald added subscribers: Petar.Avramovic, volkan, hiraditya, kristof.beyls, rovka.
E.g.
%addr1 = G_PTR_ADD %base, G_CONSTANT 20
%addr2 = G_PTR_ADD %addr1, G_CONSTANT 8
-->
%addr2 = G_PTR_ADD %base, G_CONSTANT 28
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72351
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/prelegalizercombiner-ptradd-chain.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72351.236631.patch
Type: text/x-patch
Size: 4973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200107/ad91be15/attachment.bin>
More information about the llvm-commits
mailing list