CodeGen: print and verify after TargetPassConfig::insertPass by default
authorJustin Bogner <mail@justinbogner.com>
Thu, 8 Oct 2015 00:36:22 +0000 (00:36 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 8 Oct 2015 00:36:22 +0000 (00:36 +0000)
commitb224a734975c4fb2923ebded8e63c21a8a7f2bc1
treea80b035ba0738c2c224de014bdabc9fe155a231b
parentd93522e23e5023532dc54e4be6d8a78f2f1ee5ef
CodeGen: print and verify after TargetPassConfig::insertPass by default

In r224059, we started verifying after addPass, but missed doing so on
insertPass. There isn't a good reason for the discrepancy, and
skipping the verifier in these cases causes bugs.

This also exposes a verifier error that was introduced in r249087, but
the verifier doesn't run until after the register coalescer, when the
issue happens to have been resolved. I've skipped the verifier after
SIFixSGPRLiveRangesID to avoid the failures for now and will follow up
with Matt for a proper fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249643 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/Passes.h
lib/CodeGen/Passes.cpp
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp