Patch. Fix redundent copies between nodes with different but compatible register classes

Yin Ma yinma at codeaurora.org
Mon Oct 7 11:39:23 PDT 2013


Hello,

 

This patch will remove the copy between def-use nodes with two different but
compatible register classes. 

This problem is found for ARM architecture but apply for all architectures.
In the ARM mode, most of instructions 

are defined to use the same register class like GPR. The problem is not
exposed. However, in the Thumb mode, 

instructions are defined in different register classes tGPR, GPR. Actually,
one is a superset of another register class.

There is not necessary to generate copy between them.  

 

Please review,

 

Yin 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131007/26c7d190/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rccopy.diff
Type: application/octet-stream
Size: 1295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131007/26c7d190/attachment.obj>


More information about the llvm-commits mailing list