cod2: Fix latent instruction reorder bug in cdmemcmp

Triggered on Linux by test81 in interpret.d with the
array comparison optimization patch.
Optimize simple array comparison (Issue 9477)
Merge pull request #1766 from CyberShadow/fix9477

Optimize simple array comparisons (Issue 9477)