The functions findPotentiallyBlockedCopies and buildCopy are currently not
accounting for the presence of debug instructions. In the former this results
in the optimization not being trigerred, and in the latter results in
This patch enables the optimization to be performed in a debug build and
ensures the codegen is consistent with non-debug builds.