[llvm] [RISCV][GISel] Legalize G_{U|S}{ADD|SUB}SAT (PR #92935)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 15:02:36 PDT 2024
================
@@ -361,6 +361,10 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
getActionDefinitionsBuilder(G_DYN_STACKALLOC).lower();
+ // TODO: Use Vector Single-Width Saturating Instructions for vector types.
+ getActionDefinitionsBuilder({G_UADDSAT, G_SADDSAT, G_USUBSAT, G_SSUBSAT})
----------------
topperc wrote:
Maybe put this closer to the legalization rules fro ADD and ADDO?
https://github.com/llvm/llvm-project/pull/92935
More information about the llvm-commits
mailing list