[LLVMdev] Value liveout (uses)

John McCall rjmccall at apple.com
Sat May 30 00:07:40 PDT 2009


On May 29, 2009, at 11:57 PM, John McCall wrote:
> If the value is created within the block but the block loops to
> itself, you can get away with a very slight adjustment:
>
> 		if (cast<Instruction>(ui)->getParent() != I_BB && !isa<PHINode>(ui))

Correction:  this should read:

		if (cast<Instruction>(ui)->getParent() != I_BB || isa<PHINode>(ui))

John.



More information about the llvm-dev mailing list