[llvm] [PowerPC] Add custom lowering for ssubo (#111748) (PR #115875)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 15:02:11 PST 2024


================
@@ -200,6 +200,11 @@ PPCTargetLowering::PPCTargetLowering(const PPCTargetMachine &TM,
 
   setOperationAction(ISD::UADDO, isPPC64 ? MVT::i64 : MVT::i32, Custom);
 
+  // On P10, the default lowering generates better code using the
+  // setbc instruction.
+  if (!Subtarget.hasP10Vector() && isPPC64)
----------------
RolandF77 wrote:

Why only for 64-bit?

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


More information about the llvm-commits mailing list