HomePhabricator

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

Authored by spatel on Mar 14 2016, 9:54 AM.

Description

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

Converting masked vector loads to regular vector loads for x86 AVX should always be a win.
I raised the legality issue of reading the extra memory bytes on llvm-dev. I did not see any
objections.

  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.

Differential Revision: http://reviews.llvm.org/D18094

llvm-svn: 263446

Details

Committed
spatelMar 14 2016, 9:54 AM
Differential Revision
D18094: [x86, AVX] replace masked load with full vector load when possible
Parents
rGe8efff373a51: [mips] MIPS32R6 compact branch support
Branches
Unknown
Tags
Unknown