[MLGO] Allow evictions in more cases
4e06ffe7db1548463426810aea4cccd9a15a4aea prevented evictions in a couple
circumstances that greedy allowed and the ML eviction advisor allowed
before:
1. We're allowed to evict interferences with IntfCascade < Cascade even
if the interference is unspillable.
2. An unspillable virtual register is allowed to evict an unspillable
interference with IntfCascade < Cascade.
3. An unspillable virtual register is allowed to evict an interference
with equal cascade.
To fix this, just copy the conditions from the legality assertion
(https://github.com/llvm/llvm-project/blob/70e45981bc4a0a6d28c04e8e67df5527ac6d93b7/llvm/lib/CodeGen/RegAllocGreedy.cpp#L659)
for the case where Cascade <= IntfCascade and use that.
Also update a couple comments in tests.
Assisted-By: LLM
Reviewers: mtrofin, aobolensk
Pull Request: https://github.com/llvm/llvm-project/pull/244262