[PATCH] D24822: [SelectionDAG] Expand MULHU and enable division-by-constant for wide types

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 10:47:03 PDT 2016


efriedma added a subscriber: efriedma.

================
Comment at: test/CodeGen/SPARC/rem.ll:62
@@ -33,1 +61,3 @@
+; CHECK-NEXT:   retl
+; CHECK-NEXT:   sub %o0, %o1, %o0
 
----------------
This is generating 8 multiply instructions; something is going wrong in your algorithm.  (It should only take four multiply instructions to perform a double-width multiply.)


https://reviews.llvm.org/D24822





More information about the llvm-commits mailing list