[PATCH] D36393: [DAGCombiner] Simplify shuffle mask index if the referenced input element is UNDEF
Zvi Rackover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 10:00:09 PDT 2017
zvi added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:15130
+ int Idx = SVN->getMaskElt(i);
+ if (BV0 && 0 <= Idx && Idx < (int)NumElts &&
+ BV0->getOperand(Idx).isUndef()) {
----------------
Do the affected tests cover both the 'if' and the 'else'?
Repository:
rL LLVM
https://reviews.llvm.org/D36393
More information about the llvm-commits
mailing list