[llvm] [DAGCombiner][LegalizeTypes] Fuse i128 sdiv+srem / udiv+urem into single __divmodti4 / __udivmodti4 call (PR #187908)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 03:22:49 PDT 2026


================
@@ -472,6 +472,7 @@ class LLVM_LIBRARY_VISIBILITY DAGTypeLegalizer {
   void ExpandIntRes_BSWAP             (SDNode *N, SDValue &Lo, SDValue &Hi);
   void ExpandIntRes_PARITY            (SDNode *N, SDValue &Lo, SDValue &Hi);
   void ExpandIntRes_MUL               (SDNode *N, SDValue &Lo, SDValue &Hi);
+  void ExpandIntRes_DIVREM(SDNode *N, SDValue &Lo, SDValue &Hi);
----------------
RKSimon wrote:

use the existing style here - no matter what clang-format tries to make you do :/ 

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


More information about the llvm-commits mailing list