[all-commits] [llvm/llvm-project] 5b5d3f: [AArch64][GlobalISel] Fold G_SELECT cc, %t, (G_ADD...
Jessica Paquette via All-commits
all-commits at lists.llvm.org
Tue Dec 8 10:53:59 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5b5d3fa9d9cf9e0b8904de0dc9ea5248f6a37ed1
https://github.com/llvm/llvm-project/commit/5b5d3fa9d9cf9e0b8904de0dc9ea5248f6a37ed1
Author: Jessica Paquette <jpaquette at apple.com>
Date: 2020-12-08 (Tue, 08 Dec 2020)
Changed paths:
M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/select-select.mir
Log Message:
-----------
[AArch64][GlobalISel] Fold G_SELECT cc, %t, (G_ADD %x, 1) -> CSINC %t, %x, cc
This implements
```
G_SELECT cc, %true, (G_ADD %x, 1) -> CSINC %true, %x, cc
G_SELECT cc, (G_ADD %x, 1), %false -> CSINC %x, %false, inv_cc
```
Godbolt example: https://godbolt.org/z/eoPqKq
Differential Revision: https://reviews.llvm.org/D92868
More information about the All-commits
mailing list