[LLVMdev] Instruction does not dominate all uses! <badref> ??

Krzysztof Parzyszek kparzysz at codeaurora.org
Fri Nov 2 07:29:49 PDT 2012

On 11/2/2012 6:51 AM, edA-qa mort-ora-y wrote:
> Okay, I've think I understand now. By using a "Value" object (like a
> function call) in another instruction does nothing more than use a
> reference to that value. It is still my responsibility to ensure that
> value/reference is actually created prior to its use in the block.

In your case it was created, but not inserted in the instruction list. 
For every value A in your program, if an instruction B uses A, then A 
has to be inserted in such a place in the program where it will dominate 
B.  If A is used in several places, it has to dominate all of them.


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation

More information about the llvm-dev mailing list