[PATCH] D48278: [SelectionDAG] Fold redundant masking operations of shifted value
    Diogo N. Sampaio via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Jul 14 14:24:58 PDT 2018
    
    
  
dnsampaio 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();
----------------
efriedma wrote:
> hasNUsesOfValue().  (use_size is linear in the number of uses.)
Fixed.
https://reviews.llvm.org/D48278
    
    
More information about the llvm-commits
mailing list