[LLVMdev] Eliminating dead copies

Scott Michel scottm at rushg.aero.org
Thu Jan 18 11:18:38 PST 2007


Maybe it's because I've got a lot of two machine operand instructions
and have to rely on the tied-to constraint, but I'm seeing a lot of
dead reg-to-reg copy instructions, e.g.:

	ori $3, $3, 0

(Cell SPU's version of reg-to-reg copy, looks a lot like PPC, no?)

Is there any way I can detect when this occurs, or is there code
where this detection takes place in the target to which I can
refer?


-scooter
-- 
Scott Michel                                      scottm at aero.org
High Performance Hardware Section Manager         310/336-5034
Computer Systems Research Department
The Aerospace Corporation



More information about the llvm-dev mailing list