[llvm] [ARM] Custom lower abdu and abds (PR #182696)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 12:44:39 PDT 2026


================
@@ -597,8 +597,12 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM_,
   if (!Subtarget->hasV8_1MMainlineOps())
     setOperationAction(ISD::UCMP, MVT::i32, Custom);
 
-  if (!Subtarget->isThumb1Only())
+  if (!Subtarget->isThumb1Only()) {
     setOperationAction(ISD::ABS, MVT::i32, Custom);
+    setOperationAction(ISD::ABDS, MVT::i32, Custom);
----------------
efriedma-quic wrote:

It looks like you went to some effort to make LowerABD() work for Thumb1 ABDS; why did you end up disabling it?

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


More information about the llvm-commits mailing list