[LLVMdev] Indirect branch instruction

Chris Lattner sabre at nondot.org
Tue Jan 16 18:21:20 PST 2007


On Tue, 16 Jan 2007, Nicolas Geoffray wrote:
> What I was asking is : what is the assembly code generated by llvm for this
> kind of code? My guess was 2 jumps. But it might be 1 jump, based on
> the fact that llvm knows it switches on labels.

Ah, I see what you're saying.  I believe LLVM will currently make two 
jumps for that.  If that seriously bugs you, it can always be fixed :).

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list