[MachineVerifier] Try harder to verify LiveIntervals
authorJay Foad <jay.foad@amd.com>
Wed, 24 May 2023 11:00:01 +0000 (12:00 +0100)
committerJay Foad <jay.foad@amd.com>
Wed, 24 May 2023 16:32:13 +0000 (17:32 +0100)
commitdb54627413fdcc96f356897e23db204557c48a80
tree2735674973586f7f9f9eeec8b075e609a1276e4c
parent78bf8a0a2212c1826ce2a9c0f98c73e9b9b16367
[MachineVerifier] Try harder to verify LiveIntervals

Verify the LiveIntervals analysis after a pass that claims to preserve
it, even if there are no further passes (apart from the verifier itself)
that would use the analysis.

Fixes https://github.com/llvm/llvm-project/issues/46217

Differential Revision: https://reviews.llvm.org/D129208
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/CodeGen/AArch64/regcoal-physreg.mir
llvm/test/CodeGen/AMDGPU/optimize-exec-mask-pre-ra-def-after-use.mir
llvm/test/CodeGen/AMDGPU/optimize-exec-mask-pre-ra-loop-phi.mir
llvm/test/CodeGen/AMDGPU/subreg-intervals.mir
llvm/test/CodeGen/X86/statepoint-cmp-sunk-past-statepoint.ll