[LLVMdev] How to assign a constant to a register?

leledumbo leledumbo_cool at yahoo.co.id
Mon Oct 18 21:22:23 PDT 2010


> let me say that in general doing this is pointless.  Due to SSA form, if %x
is 
> set to 5 you can't set it to something else later.  Thus everywhere that
> you 
> use %x you might as well just directly use 5 there instead.

My bad... I should've started thinking in SSA way all the time. I got it
mixed with common assembly language. So I must hold the initial value until
the first operation that deals with it has come, right?
-- 
View this message in context: http://old.nabble.com/How-to-assign-a-constant-to-a-register--tp29987387p29996865.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list