[llvm] [RISCV] GISel custom lowering for G_ADD/G_SUB (PR #121587)
Luke Quinn via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 06:49:08 PST 2025
================
@@ -132,7 +133,14 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
auto PtrVecTys = {nxv1p0, nxv2p0, nxv4p0, nxv8p0, nxv16p0};
- getActionDefinitionsBuilder({G_ADD, G_SUB, G_AND, G_OR, G_XOR})
+ getActionDefinitionsBuilder({G_ADD, G_SUB})
+ .legalFor({sXLen})
+ .legalIf(typeIsLegalIntOrFPVec(0, IntOrFPVecTys, ST))
----------------
lquinn2015 wrote:
I was leaning into just targeting the G_ADD/G_SUB behavior and was just duplicating the behavior from the exist ALU ops below to maintain behavior
https://github.com/llvm/llvm-project/pull/121587
More information about the llvm-commits
mailing list