[PATCH] D59180: [ScalarizeMaskedMemIntrin] Add support for scalarizing expandload and compressstore intrinsics.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 9 14:28:52 PST 2019


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added a subscriber: jdoerfert.

This adds support for scalarizing these intrinsics as well the X86TargetTransformInfo support to avoid scalarizing them in the cases X86 can handle.

I've omitted handling special cases for constant masks for this first pass. Though CodeGenPrepare can constant fold the branch conditions and remove some of the control flow anyway.

Fixes  PR40994 and is covers most of PR3666. Might want to implement constant masks to close that.


https://reviews.llvm.org/D59180

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.h
  test/Transforms/ScalarizeMaskedMemIntrin/X86/expand-masked-compressstore.ll
  test/Transforms/ScalarizeMaskedMemIntrin/X86/expand-masked-expandload.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59180.189994.patch
Type: text/x-patch
Size: 24136 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190309/dbdbba7b/attachment.bin>


More information about the llvm-commits mailing list