[llvm-branch-commits] [SPARC] Use addxccc to do multiword addition when we have VIS3 (PR #135713)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 15 08:55:50 PDT 2025


================
@@ -1737,6 +1737,11 @@ SparcTargetLowering::SparcTargetLowering(const TargetMachine &TM,
   setOperationAction(ISD::SUBC, MVT::i32, Legal);
   setOperationAction(ISD::SUBE, MVT::i32, Legal);
 
+  if (Subtarget->isVIS3()) {
+    setOperationAction(ISD::ADDC, MVT::i64, Legal);
+    setOperationAction(ISD::ADDE, MVT::i64, Legal);
----------------
koachan wrote:

Will do, but I think it's better to leave the patch as-is for now and do the switch in another patch.

https://github.com/llvm/llvm-project/pull/135713


More information about the llvm-branch-commits mailing list