[PATCH] D79758: [mlir] [VectorOps] Replace zero-scalar + splat into direct zero vector constant

Aart Bik via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 11 18:55:28 PDT 2020


aartbik created this revision.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, stephenneuendorffer, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a reviewer: nicolasvasilache.
Herald added a project: LLVM.
aartbik added reviewers: andydavis1, reidtatge.

The scalar zero + splat yields more intermediate code than the direct
dense zero constant, and ultimately is lowered to exactly the same
LLVM IR operations, so no point wasting the intermediate code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79758

Files:
  mlir/lib/Dialect/Vector/VectorTransforms.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79758.263332.patch
Type: text/x-patch
Size: 7879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200512/bd890643/attachment.bin>


More information about the llvm-commits mailing list