[all-commits] [llvm/llvm-project] cb5bad: [AArch64][GlobalISel] Add lowering for constant BI...
David Green via All-commits
all-commits at lists.llvm.org
Tue Sep 12 02:13:45 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb5bad2acd7a498761d4979825d6801f5a845135
https://github.com/llvm/llvm-project/commit/cb5bad2acd7a498761d4979825d6801f5a845135
Author: David Green <david.green at arm.com>
Date: 2023-09-12 (Tue, 12 Sep 2023)
Changed paths:
M llvm/lib/Target/AArch64/AArch64Combine.td
M llvm/lib/Target/AArch64/AArch64InstrGISel.td
M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
M llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/legalize-fcopysign.mir
M llvm/test/CodeGen/AArch64/GlobalISel/select-bit.mir
M llvm/test/CodeGen/AArch64/neon-bitwise-instructions.ll
Log Message:
-----------
[AArch64][GlobalISel] Add lowering for constant BIT/BIF/BSP (#65897)
The non-constant bit/bif/bsp already work through tablegen patterns, this
patch handles the constant case, mirroring the basic support for
`or(and(X, C), and(Y, ~C))` from ISel tryCombineToBSL. BSP gets expanded
to either BIT, BIF or BSL depending on the best register allocation.
G_BIT can be replaced with G_BSP as a more general alternative.
More information about the All-commits
mailing list