[all-commits] [llvm/llvm-project] b7fcf6: [GISel] Add new combines for G_ADD
Michael Kitzan via All-commits
all-commits at lists.llvm.org
Mon Jun 6 11:20:11 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7fcf6632fe30cdb89493b6c6b59cf1741a00dfc
https://github.com/llvm/llvm-project/commit/b7fcf6632fe30cdb89493b6c6b59cf1741a00dfc
Author: Michael Kitzan <mkitzan at apple.com>
Date: 2022-06-06 (Mon, 06 Jun 2022)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
M llvm/include/llvm/Target/GlobalISel/Combine.td
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
A llvm/test/CodeGen/AArch64/GlobalISel/combine-add.mir
Log Message:
-----------
[GISel] Add new combines for G_ADD
Patch adds new GICombineRules for G_ADD:
G_ADD(x, G_SUB(y, x)) -> y
G_ADD(G_SUB(y, x), x) -> y
Patch additionally adds new combine tests for AArch64 target for
these new rules.
Reviewed by: paquette
Differential Revision: https://reviews.llvm.org/D87936
More information about the All-commits
mailing list