[llvm] [RISCV] GISel custom lowering for G_ADD/G_SUB (PR #121587)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 4 11:13:26 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))
----------------
topperc wrote:
@arsenm the `typeIsLegalIntOrFPVec` usage in this file does need to be updated, but that's unrelated to this patch.
https://github.com/llvm/llvm-project/pull/121587
More information about the llvm-commits
mailing list