This solves the big compile time regression in https://github.com/llvm/llvm-project/issues/57664
The hot function is getTopLevelParentCycle.
Too many redundant computations to get a top level cycle for a block.
This patch improves compile time about X15 on PPC64 Linux.
This assumes the new parent is a top level cycle. Is this guaranteed?