Skip to content

Changes

Summary

  1. Z: Short circuit memCmp methods if addresses are equal (commit: 4af016d) (details)
Commit 4af016d9595f498b0e98197d4742f36091628cfb by Ehsan Kiani Far
Z: Short circuit memCmp methods if addresses are equal

If addresses of two blocks of memory are equal, the content is equal too.
We can jump to the end label without comparing the content.
Four methods are updated to handle signed and unsigned result as well as constant and variable length.

Signed-off-by: Ehsan Kiani Far <ehsan.kianifar@gmail.com>
(commit: 4af016d)
The file was modified compiler/z/codegen/OpMemToMem.cpp (diff)