[PATCH] D75348: [DAGCombiner] recognize shuffle (shuffle X, Mask0), Mask --> splat X
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 06:40:20 PST 2020
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:19298
+ }
+ assert(all_of(NewMask, [](int M) { return M == -1; }) ||
+ getSplatIndex(NewMask) != -1 && "Expected a splat mask");
----------------
Check for isShuffleMaskLegal() ?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75348/new/
https://reviews.llvm.org/D75348
More information about the llvm-commits
mailing list