Fix PR6300.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 15 Feb 2010 22:03:29 +0000 (22:03 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 15 Feb 2010 22:03:29 +0000 (22:03 +0000)
commit8eea48a43da9e861841abe869c5f3215c1f42d27
tree7ed4d14fc52d51a564db51403cfcf344dd2728f8
parentf1b0a345d31ba952e333cf8cc5b039b8ab82857a
Fix PR6300.

A virtual register can be used before it is defined in the same MBB if the MBB
is part of a loop. Teach the implicit-def pass about this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96279 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ProcessImplicitDefs.cpp
test/CodeGen/X86/2010-02-15-ImplicitDefBug.ll [new file with mode: 0644]