When simplifying an empty block with an unconditional branch by skipping over it, the skipped block might have been a loop's latch. In that case transfer the loop's metadata attached to the latch to the new latch. If it already is also a latch with different metadata, do not skip the block.
Part of fix for llvm.org/PR50060.
clang-tidy: warning: invalid case style for function 'TryToSimplifyUncondBranchFromEmptyBlock' [readability-identifier-naming]
not useful