[PATCH] Add support for load folding of avx1 logical instructions

Louis Gerbarg lgg at apple.com
Tue Apr 1 15:48:39 PDT 2014


This patch adds patterns that allow LLVM to fold loads into AVX1 logical instructions. The folds are already handled in the AVX2 case since it has integer instructions, but the conversions between floating points and integers in the DAGs for AVX1 prevented the existing logic from folding, despite the fact that the folds are legal. In some cases the folds were being handled by the peephole optimizer, but it was missing most of them.

The patch includes test cases to make sure the folds are happening in the isel.

Louis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-load-folding-of-avx1-logical-instruc.patch
Type: application/octet-stream
Size: 4383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140401/5b27be42/attachment.obj>


More information about the llvm-commits mailing list