verify-uselistorder: Call verifyModule() and improve output

Call `verifyModule()` after parsing and after every transformation.
Also convert some `DEBUG(dbgs())` to `errs()` to increase visibility
into what's going on.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2014-08-18 23:44:14 +00:00
parent f359f7ef8c
commit 36c150801a
2 changed files with 35 additions and 31 deletions

View File

@@ -120,7 +120,7 @@ entry:
}
; Check for when an instruction is its own user.
define void @selfUser() {
define void @selfUser(i1 %a) {
entry:
ret void
@@ -129,7 +129,7 @@ loop1:
loop2:
%var = phi i32 [ %var, %loop1 ], [ %var, %loop2 ]
br label %loop1
br label %loop2
}
; Check that block addresses work.