mirror of
https://github.com/KarolS/millfork.git
synced 2024-08-30 19:29:42 +00:00
Small optimization fix
This commit is contained in:
parent
608958c1ed
commit
828cef58dd
@ -41,7 +41,7 @@ object AlwaysGoodOptimizations {
|
||||
needsFlowInfo = FlowInfoRequirement.BothFlows,
|
||||
(Elidable & MatchA(0) &
|
||||
HasOpcode(ASL) & HasAddrMode(Implied) & DoesntMatterWhatItDoesWith(State.C)) ~~> { (code, ctx) =>
|
||||
AssemblyLine.immediate(LDA, ctx.get[Int](0) << 1) :: Nil
|
||||
AssemblyLine.immediate(LDA, (ctx.get[Int](0) << 1) & 0xff) :: Nil
|
||||
},
|
||||
(Elidable & MatchA(0) &
|
||||
HasOpcode(LSR) & HasAddrMode(Implied) & DoesntMatterWhatItDoesWith(State.C)) ~~> { (code, ctx) =>
|
||||
|
Loading…
Reference in New Issue
Block a user