[LoopIdiomRecognize] Use a regular array instead of a SmallVector and explicit ArrayRef.

llvm-svn: 331499
This commit is contained in:
Craig Topper 2018-05-04 01:04:26 +00:00
parent 8304231508
commit cafae62ec9
1 changed files with 1 additions and 2 deletions

View File

@ -1416,9 +1416,8 @@ bool LoopIdiomRecognize::recognizeAndInsertCTLZ() {
// br i1 %tobool
IRBuilder<> Builder(PH->getTerminator());
SmallVector<const Value *, 2> Ops =
const Value *Args[] =
{InitX, ZeroCheck ? Builder.getTrue() : Builder.getFalse()};
ArrayRef<const Value *> Args(Ops);
if (CurLoop->getHeader()->size() != 6 &&
TTI->getIntrinsicCost(Intrinsic::ctlz, InitX->getType(), Args) >
TargetTransformInfo::TCC_Basic)