git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Issue #65: remove zshr from the inliner
cada634Andy Arvanitis
src/CodeGen/IL/Optimizer/Inliner.hs−1
@@ -117,7 +117,6 @@ inlineCommonOperators = everywhereTopDown $ applyAll $
117 , binary' C.dataIntBits C.xor BitwiseXor
117 , binary' C.dataIntBits C.xor BitwiseXor
118 , binary' C.dataIntBits C.shl ShiftLeft
118 , binary' C.dataIntBits C.shl ShiftLeft
119 , binary' C.dataIntBits C.shr ShiftRight
119 , binary' C.dataIntBits C.shr ShiftRight
120− , binary' C.dataIntBits C.zshr ZeroFillShiftRight
121 , unary' C.dataIntBits C.complement BitwiseNot
120 , unary' C.dataIntBits C.complement BitwiseNot
122
121
123 , inlineNonClassFunction (isModFn (C.dataFunction, C.apply)) $ \f x -> App Nothing f [x]
122 , inlineNonClassFunction (isModFn (C.dataFunction, C.apply)) $ \f x -> App Nothing f [x]
src/CodeGen/IL/Printer.hs+1−2
@@ -407,8 +407,7 @@ prettyPrintIL' = A.runKleisli $ runPattern matchValue
407 , [ binary Add "+"
407 , [ binary Add "+"
408 , binary Subtract "-" ]
408 , binary Subtract "-" ]
409 , [ binary ShiftLeft "<<"
409 , [ binary ShiftLeft "<<"
410− , binary ShiftRight ">>"
410+ , binary ShiftRight ">>" ]
411− , binary ZeroFillShiftRight ">>>" ]
412 , [ binary LessThan "<"
411 , [ binary LessThan "<"
413 , binary LessThanOrEqualTo "<="
412 , binary LessThanOrEqualTo "<="
414 , binary GreaterThan ">"
413 , binary GreaterThan ">"