git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Issue #65: remove zshr from the inliner
commitcada6343fb8adc0df9c2e44bf23821e6489bb58d authorAndy Arvanitis <andyarvanitis@gmail.com> dateSun 4 Oct 2020, 19:08 (6 years ago) parentb2bf654
2 files changed+1−3
src/CodeGen/IL/Optimizer/Inliner.hs−1 src/CodeGen/IL/Printer.hs+1−2
src/CodeGen/IL/Optimizer/Inliner.hs−1
@@ -117,7 +117,6 @@ inlineCommonOperators = everywhereTopDown $ applyAll $
117117 , binary' C.dataIntBits C.xor BitwiseXor
118118 , binary' C.dataIntBits C.shl ShiftLeft
119119 , binary' C.dataIntBits C.shr ShiftRight
120− , binary' C.dataIntBits C.zshr ZeroFillShiftRight
121120 , unary' C.dataIntBits C.complement BitwiseNot
122121
123122 , 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
407407 , [ binary Add "+"
408408 , binary Subtract "-" ]
409409 , [ binary ShiftLeft "<<"
410− , binary ShiftRight ">>"
411− , binary ZeroFillShiftRight ">>>" ]
410+ , binary ShiftRight ">>" ]
412411 , [ binary LessThan "<"
413412 , binary LessThanOrEqualTo "<="
414413 , binary GreaterThan ">"