[AMDGPU] Stop DBG_VALUEs in a bundle from changing the post-RA schedule (#244891)
SIInstrInfo::getInstrLatency gives a BUNDLE the largest latency of its
instructions plus one cycle for each additional instruction.
SIPostRABundler
keeps meta instructions between the memory instructions of a clause, so
each
DBG_VALUE inside the bundle adds a cycle, and -g changes the post-RA
schedule.
For example, in a kernel that calls a function and then uses its pointer
argument, -g reorders the kernel argument loads and the scratch setup.
Skip debug instructions when computing the latency of a bundle, since
they
do not issue. The new test checks the same schedule with and without the
debug
info.