[PATCH] D150230: [GlobalISel] Implement some binary reassociations, G_ADD for now
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 9 15:19:13 PDT 2023
aemerson created this revision.
aemerson added reviewers: arsenm, paquette, foad, Pierre-vh.
aemerson added a project: LLVM.
Herald added subscribers: StephenFan, kerbowa, hiraditya, jvesely.
Herald added a project: All.
aemerson requested review of this revision.
Herald added a subscriber: wdng.
- (op (op X, C1), C2) -> (op X, (op C1, C2))
- (op (op X, C1), Y) -> (op (op X, Y), C1)
Some code duplication with the G_PTR_ADD reassociations unfortunately but no
easy way to avoid it that I can see.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150230
Files:
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/prelegalizer-combiner-binop-reassoc.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.s.buffer.load.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150230.520839.patch
Type: text/x-patch
Size: 17973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230509/f97c19ae/attachment-0001.bin>
More information about the llvm-commits
mailing list