[PATCH] D48278: [SelectionDAG] Fold redundant masking operations of shifted value
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 11:23:03 PDT 2018
efriedma added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:6104
+ SDValue MASKED = SHIFT.getOperand(0);
+ if (MASKED.getValueType().isVector() || MASKED->use_size() != 2)
+ return SDValue();
----------------
hasNUsesOfValue(). (use_size is linear in the number of uses.)
https://reviews.llvm.org/D48278
More information about the llvm-commits
mailing list