forked from OSchip/llvm-project
parent
2b6963fce9
commit
1c600c6e83
|
@ -754,8 +754,8 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
||||||
if (Changed) return II;
|
if (Changed) return II;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto SimplifyDemandedVectorEltsLow = [this](Value *Op, unsigned Width, unsigned DemandedWidth)
|
auto SimplifyDemandedVectorEltsLow = [this](Value *Op, unsigned Width,
|
||||||
{
|
unsigned DemandedWidth) {
|
||||||
APInt UndefElts(Width, 0);
|
APInt UndefElts(Width, 0);
|
||||||
APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth);
|
APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth);
|
||||||
return SimplifyDemandedVectorElts(Op, DemandedElts, UndefElts);
|
return SimplifyDemandedVectorElts(Op, DemandedElts, UndefElts);
|
||||||
|
|
Loading…
Reference in New Issue