[LLVMdev] Doubt related to scheduling with shift operation

Duncan Sands baldrick at free.fr
Fri Dec 11 08:18:39 PST 2009


Hi,

> My target is an 8-bit target. Therefore while performing a shift (right 
> or left) on long (32 bits) it is legalized in 4 smaller units. After 
> performing the shift, this value should be stored at the same location. 
> So order of the stores does matter. But all 4 stores are parallel in the 
> code and do not have any control flow dependency between them. Therefore 
> these stores are scheduled in some order not correct for the result.

I'm not sure what you mean by "should be stored at the same location",
and I don't understand why the order matters.  Can you please explain.

Ciao,

Duncan.



More information about the llvm-dev mailing list