[PATCH] D53659: [ValueTracking] peek through shuffles in ComputeNumSignBits (PR37549)
    Simon Pilgrim via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Oct 24 10:41:19 PDT 2018
    
    
  
RKSimon added inline comments.
================
Comment at: lib/Analysis/ValueTracking.cpp:2515
+  case Instruction::ShuffleVector:
+    // Look through shuffle of 1 source vector.
+    if (isa<UndefValue>(U->getOperand(0)))
----------------
Do we know for certain that we don't reference an under operand at this point? SelectionDAG::ComputeNumSignBits bails i such cases.
https://reviews.llvm.org/D53659
    
    
More information about the llvm-commits
mailing list