[PATCH] D66688: [LoopVectorize] Leverage speculation safety to avoid masked.loads

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 15:05:05 PDT 2019


reames created this revision.
reames added reviewers: hsaito, Ayal.
Herald added subscribers: bollu, mcrosier.
Herald added a project: LLVM.

This is my first real patch to the loop vectorizer.  There's some obvious room for API cleanup in the patch, but before I iterate on that, I want to make sure I'm approaching the problem the "right way" and that my attempt at clarifying comments are actually correct.  :)

The intention of the patch is to avoid generating masked loads for cases where we can simply speculate the load, and then ignore the results.  This is a building block on the path to a longer term goal, which is to eventually support early exits in the vectorizer.  (But that's out of scope for the moment.)


Repository:
  rL LLVM

https://reviews.llvm.org/D66688

Files:
  lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  test/Transforms/LoopVectorize/load-deref-pred.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66688.216963.patch
Type: text/x-patch
Size: 12479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190823/de4e9358/attachment.bin>


More information about the llvm-commits mailing list