[verify-regalloc] Verify after allocation and before postOptimization
authorPhilip Reames <listmail@philipreames.com>
Thu, 18 Feb 2021 17:08:56 +0000 (09:08 -0800)
committerPhilip Reames <listmail@philipreames.com>
Thu, 18 Feb 2021 17:10:50 +0000 (09:10 -0800)
commit13753808f4e990089bf34ff44474e85cc3e6e775
tree8543a26669b07a3823c334356c6e4239d54ce030
parent1f2122c9b046a7d6d141f7c42528d8a3e2e66b70
[verify-regalloc] Verify after allocation and before postOptimization

I've now hit several cases where a mistake in the regalloc main loop caused corrupt live intervals that didn't get caught until either the next verify or during post-optimization.  The later case is rather confusing and tends to lead one down false trails, so let's catch corruption before that.
llvm/lib/CodeGen/RegAllocGreedy.cpp