ΒΆllvm::ConstantInt* getPreferredVectorIndex(
    llvm::ConstantInt* IndexC)

Description

Given a constant index for a extractelement or insertelement instruction, return it with the canonical type if it isn't already canonical. We arbitrarily pick 64 bit as our canonical type. The actual bitwidth doesn't matter, we just want a consistent type to simplify CSE.

Declared at: llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp:381

Parameters

llvm::ConstantInt* IndexC