dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 1 forks source link

Don't need to check if source and dest regs are different because resolver.mov takes care of this. #254

Closed dplassgit closed 10 months ago

dplassgit commented 1 year ago

https://github.com/dplassgit/d2lang/blob/18378e5779f29ca3c3e9f01dfa9d99ba43bf9eae/src/com/plasstech/lang/d2/codegen/x64/CallCodeGenerator.java#LL99C11-L104C12

dplassgit commented 10 months ago

That's the only example in the codebase, and it does it so it can document why it ISN'T called.