[LLVMdev] Unreachable block eliminate problem.

Joshua Cranmer pidgeot18 at gmail.com
Tue Oct 2 08:25:38 PDT 2012

On 10/2/2012 6:30 AM, r4start wrote:
> Hi all!
> I have problem with eliminating of unreachable basic block in function 
> code.
> This block must be called from other place through address in global 
> constant, it has no predecessors.
> When I build object file this address = 1.
> I found that 1 inserts only if block was elimanted.
> Is it normal, when block eliminates even if some constant have address 
> of this block?

Block addresses by themselves give no guarantees to keeping blocks live; 
you have to make the basic block reachable from the CFG.

Joshua Cranmer
News submodule owner
DXR coauthor

More information about the llvm-dev mailing list