[PATCH] D44324: [TwoAddressInstructionPass] Improve tryInstructionCommute X86 FMA and vpternlog instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 12:51:46 PST 2018


craig.topper created this revision.
craig.topper added reviewers: MatzeB, v_klochkov.

These instructions have 3 operands that can be commuted. The first commute we find may not be the best. So we should keep searching even after we perform a commute.


https://reviews.llvm.org/D44324

Files:
  lib/CodeGen/TwoAddressInstructionPass.cpp
  test/CodeGen/X86/avx512-vpternlog-commute.ll
  test/CodeGen/X86/recip-fastmath.ll
  test/CodeGen/X86/recip-fastmath2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44324.137817.patch
Type: text/x-patch
Size: 11989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180309/a7e687eb/attachment.bin>


More information about the llvm-commits mailing list