This is the follow-up for https://github.com/llvm/llvm-project/issues/61397 -
Machine Late Instructions Cleanup Pass takes long time to process huge testcase.
I've made an attempt to improve patch sent by Jonas Paulsson at the github issue, Jonas can you
please try this on your testcases to see if it has any compile-time benefit. Basically it joins
RegDefs and RegKills into single map to reduce lookup time.
I'm submitting original patch from Jonas and then mine so they can be compared for convenience.