[LLVMdev] "Instruction does not dominate all uses"

Tim Northover t.p.northover at gmail.com
Sun Sep 8 02:58:40 PDT 2013


Hi Rasha,

> Instruction does not dominate all uses!

There should be two instructions printed after that message. The first
defines a value used by the second, but the message means there's some
path through your function that can reach the second inst (the use)
without the value being defined by the first instruction.

At its simplest you probably want to decide what that value should be
if the defining instruction isn't reached (maybe an initial loop
value?), insert a phi node describing this and use that instead of the
instruction that may not be executed.

> Could you help for this ?

Not without more information, I'm afraid. The fragment you posted has no issues.

Cheers.

Tim.



More information about the llvm-dev mailing list