[PATCH] D28744: [X86][AVX] Remove "OptForSize" condition from some memory foldings.

Ayman Musa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 15 06:20:45 PST 2017


aymanmus created this revision.
aymanmus added reviewers: igorb, zvi, craig.topper.
aymanmus added a subscriber: llvm-commits.

These instruction included a partial update of the output register in their SSE versions.
AVX, and AVX512 versions of the same instructions canceled the partial register update by passing an additional operand, that it's value will be copied to the rest of the output register.
No partial register update => The folding should be performed normally (not only when optimizing for size).


https://reviews.llvm.org/D28744

Files:
  lib/Target/X86/X86InstrAVX512.td
  lib/Target/X86/X86InstrInfo.cpp
  lib/Target/X86/X86InstrSSE.td
  test/CodeGen/X86/avx-arith.ll
  test/CodeGen/X86/avx512-cvt.ll
  test/CodeGen/X86/fold-load-unops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28744.84490.patch
Type: text/x-patch
Size: 8783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170115/720b06d8/attachment.bin>


More information about the llvm-commits mailing list