Fixed a failure in cost calculation for vector GEP
[oota-llvm.git] / include / llvm / Analysis / VectorUtils.h
index 48ef76a9c8dae256020b408ab6e09ff69742e1e4..531803adf5e487c0a3535f71fd6a372b2aafd4ad 100644 (file)
@@ -86,7 +86,7 @@ Value *findScalarElement(Value *V, unsigned EltNo);
 /// \brief Get splat value if the input is a splat vector or return nullptr.
 /// The value may be extracted from a splat constants vector or from
 /// a sequence of instructions that broadcast a single value into a vector.
-Value *getSplatValue(Value *V);
+const Value *getSplatValue(const Value *V);
 
 /// \brief Compute a map of integer instructions to their minimum legal type
 /// size.