[PATCH] R600/SI: Fix various operand legalization bugs

Matt Arsenault arsenm2 at gmail.com
Tue Sep 23 10:55:26 PDT 2014


Hi,

This set of patches works towards removing SIISelLowering::legalizeOperands in favor of a post-isel hook which uses SIInstrInfo::legalizeOperands, which requires most of the same logic anyway. As in intermediate step, keep most of the original code in place for immediate folding where it is. This also fixes the overly strict enforcement of the 1 SGPR use constraint, which has been preventing f64 fdiv from working correctly. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-R600-SI-Remove-apparently-dead-code-in-legalizeOpera.patch
Type: application/octet-stream
Size: 1368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-R600-SI-Enable-named-operand-table-for-SALU-instruct.patch
Type: application/octet-stream
Size: 1617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-R600-SI-Fix-using-wrong-operand-indices-when-commuti.patch
Type: application/octet-stream
Size: 4319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-R600-SI-Don-t-assert-on-exotic-operand-types.patch
Type: application/octet-stream
Size: 1028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-R600-SI-Fix-hardcoded-and-wrong-operand-numbers.patch
Type: application/octet-stream
Size: 1310 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-R600-SI-Add-new-helper-isSGPRClassID.patch
Type: application/octet-stream
Size: 2018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-R600-SI-Don-t-move-operands-that-are-required-to-be-.patch
Type: application/octet-stream
Size: 3815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-R600-SI-Implement-findCommutedOpIndices.patch
Type: application/octet-stream
Size: 2943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-R600-SI-Partially-move-operand-legalization-to-post-.patch
Type: application/octet-stream
Size: 5457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-R600-SI-Allow-same-SGPR-to-be-used-for-multiple-oper.patch
Type: application/octet-stream
Size: 7630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-R600-SI-Add-a-note-about-the-order-of-the-operands-t.patch
Type: application/octet-stream
Size: 1229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-R600-SI-Add-strict-check-lines-to-div_scale-tests.patch
Type: application/octet-stream
Size: 16508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140923/6784eead/attachment-0011.obj>


More information about the llvm-commits mailing list