[PATCH] D26660: [X86] Remove the scalar intrinsics for fadd/fsub/fdiv/fmul

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 23:03:37 PST 2016


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

These intrinsics have been unused for clang for a while. This patch removes them. We auto upgrade them to extractelements, a scalar operation and then an insertelement. This matches the sequence used by clangs intrinsic file.


https://reviews.llvm.org/D26660

Files:
  include/llvm/IR/IntrinsicsX86.td
  lib/IR/AutoUpgrade.cpp
  lib/Target/X86/X86InstrSSE.td
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  test/CodeGen/X86/avx-intrinsics-x86.ll
  test/CodeGen/X86/sse-intrinsics-x86-upgrade.ll
  test/CodeGen/X86/sse-intrinsics-x86.ll
  test/CodeGen/X86/sse2-intrinsics-x86-upgrade.ll
  test/CodeGen/X86/sse2-intrinsics-x86.ll
  test/CodeGen/X86/vec_ss_load_fold.ll
  test/Transforms/InstCombine/x86-sse.ll
  test/Transforms/InstCombine/x86-sse2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26660.77948.patch
Type: text/x-patch
Size: 51218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161115/6ddcc28c/attachment.bin>


More information about the llvm-commits mailing list