[TargetPassConfig] Run MachineVerifier after more passes.
authorEli Friedman <efriedma@quicinc.com>
Wed, 22 Apr 2020 04:00:19 +0000 (21:00 -0700)
committerEli Friedman <efriedma@quicinc.com>
Wed, 22 Apr 2020 04:05:07 +0000 (21:05 -0700)
commit46a52ff9eda0750ff05311310774d954bcaf3408
tree414b1b2a0b10618a4ccb851b377987cd43b91ae2
parent5081468a669236fded73b2ca9fad2a8b8e6b7bf9
[TargetPassConfig] Run MachineVerifier after more passes.

We were disabling verification for no reason in a bunch of places; just
turn it on.

At this point, there are two key places where we don't run verification:
during register allocation, and after addPreEmitPass.  Regalloc probably
isn't worth messing with; it has its own invariants, and verifying
afterwards is probably good enough.  For after addPreEmitPass, it's
probably worth investigating improvements.
llvm/lib/CodeGen/TargetPassConfig.cpp