[PATCH] ARM FastISel fix sext/zext fold

JF Bastien jfb at google.com
Sat Jun 8 12:26:42 PDT 2013


Sign- and zero-extension folding was slightly incorrect because it wasn't
checking that the shift on extensions was zero. Further, I recently added
AND rd, rn, #255 as a form of 8-bit zero extension, and failed to add the
folding code for it.

This patch fixes both issues.

This patch fixes both, and the test should remain the same:
  test/CodeGen/ARM/fast-isel-fold.ll
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130608/1508a6c4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fastisel-fix-ext-fold.patch
Type: application/octet-stream
Size: 1902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130608/1508a6c4/attachment.obj>


More information about the llvm-commits mailing list