LLVM: Use generic code for small size quot-rem ops
authorPeter Trommler <ptrommler@acm.org>
Sun, 18 Nov 2018 15:41:38 +0000 (16:41 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 22 Nov 2018 21:04:45 +0000 (16:04 -0500)
compiler/codeGen/StgCmmPrim.hs

index eb4d681..015eece 100644 (file)
@@ -885,7 +885,7 @@ callishPrimOpSupported dflags op
                      | otherwise     -> Right (genericIntQuotRemOp W8)
 
       Int16QuotRemOp | (ncg && x86ish)
-                        || llvm      -> Left (MO_S_QuotRem W16)
+                                     -> Left (MO_S_QuotRem W16)
                      | otherwise     -> Right (genericIntQuotRemOp W16)
 
 
@@ -904,7 +904,7 @@ callishPrimOpSupported dflags op
                      | otherwise      -> Right (genericWordQuotRemOp W8)
 
       Word16QuotRemOp| (ncg && x86ish)
-                        || llvm      -> Left (MO_U_QuotRem W16)
+                                     -> Left (MO_U_QuotRem W16)
                      | otherwise     -> Right (genericWordQuotRemOp W16)
 
       WordAdd2Op     | (ncg && (x86ish