[PATCH] D18094: [x86, AVX] replace masked load with full vector load when possible

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 12:00:15 PST 2016


spatel created this revision.
spatel added reviewers: ashutosh.nema, RKSimon, delena.
spatel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

This patch shows the benefit of converting masked vector loads to regular vector loads for x86 AVX.
I've raised the legality issue of reading the extra memory bytes on llvm-dev.
1. x86 already does this kind of optimization for multiple scalar loads -> vector load.
2. If other targets have the same flexibility, we could move this transform up to CGP or DAGCombiner.

http://reviews.llvm.org/D18094

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/masked_memop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18094.50458.patch
Type: text/x-patch
Size: 6022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160311/540336d2/attachment.bin>


More information about the llvm-commits mailing list