"disable-binop-extract-shuffle", cl::init(false), cl::Hidden,
cl::desc("Disable binop extract to shuffle transforms"));
+static const unsigned InvalidIndex = std::numeric_limits<unsigned>::max();
+
class VectorCombine {
public:
VectorCombine(Function &F, const TargetTransformInfo &TTI,
// probably becomes unnecessary.
auto *Ext0 = cast<ExtractElementInst>(I0);
auto *Ext1 = cast<ExtractElementInst>(I1);
- uint64_t InsertIndex = std::numeric_limits<uint64_t>::max();
+ uint64_t InsertIndex = InvalidIndex;
if (I.hasOneUse())
match(I.user_back(),
m_InsertElt(m_Value(), m_Value(), m_ConstantInt(InsertIndex)));