Feeding isSafeToSpeculativelyExecute its DataLayout pointer
[oota-llvm.git] / lib / Transforms / InstCombine / InstructionCombining.cpp
index 487699c41e95cd892a8f9df89dfdc757ba9151e4..46e3bfc7e44e07a74565d3a986a9238d2bb949f9 100644 (file)
@@ -1199,7 +1199,7 @@ Value *InstCombiner::SimplifyVectorOp(BinaryOperator &Inst) {
   // It may not be safe to reorder shuffles and things like div, urem, etc.
   // because we may trap when executing those ops on unknown vector elements.
   // See PR20059.
-  if (!isSafeToSpeculativelyExecute(&Inst)) return nullptr;
+  if (!isSafeToSpeculativelyExecute(&Inst, DL)) return nullptr;
 
   unsigned VWidth = cast<VectorType>(Inst.getType())->getNumElements();
   Value *LHS = Inst.getOperand(0), *RHS = Inst.getOperand(1);