[LLVMdev] Instruction does not dominate all uses ???

Eli Friedman eli.friedman at gmail.com
Tue Jun 22 22:36:05 PDT 2010

On Tue, Jun 22, 2010 at 10:22 PM, Chayan Sarkar <chayan.ju at gmail.com> wrote:
> Hi,
> I am trying to write a small pass. In my pass, I have inserted some
> instruction and used that in another. But, during OPT it is  showing
> "Instruction does not dominate all uses" like following -
> %b.1 = bitcast i32 4 to i32                     ; <i32> [#uses=8]  %11
> = add i32 %a.1, %b.1                        ; <i32>
> [#uses=1]Instruction does not dominate all uses!
> Any idea, what is wrong with this?

It's hard to say precisely without the whole module, but probably %b.1
doesn't dominate %11, like the error says.  This is a requirement of
valid LLVM IR.


More information about the llvm-dev mailing list