[LLVMdev] "Instruction does not dominate all uses"
rasha.sala7 at gmail.com
Sun Sep 8 03:23:15 PDT 2013
Instruction does not dominate all uses!
%5 = icmp ne i32 %4, 0
br i1 %5, label %BB1, label %BB2
Broken module found, compilation aborted!
On 8 September 2013 11:58, Tim Northover <t.p.northover at gmail.com> wrote:
> 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
* Rasha Salah Omar
Msc Student at E-JUST
Demonestrator at Faculty of Computers and Informatics
* e-mail: rasha.omar at ejust.edu.eg*
P* Please consider the environment before printing this email.*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev