projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merging r257666:
[oota-llvm.git]
/
lib
/
Analysis
/
CostModel.cpp
diff --git
a/lib/Analysis/CostModel.cpp
b/lib/Analysis/CostModel.cpp
index 604cc2af74641780896df973db3bb8630ae7bb7b..0383cbfbbe4cdb9401610f176523c3cccf1441ce 100644
(file)
--- a/
lib/Analysis/CostModel.cpp
+++ b/
lib/Analysis/CostModel.cpp
@@
-152,10
+152,7
@@
static bool matchPairwiseShuffleMask(ShuffleVectorInst *SI, bool IsLeft,
Mask[i] = val;
SmallVector<int, 16> ActualMask = SI->getShuffleMask();
Mask[i] = val;
SmallVector<int, 16> ActualMask = SI->getShuffleMask();
- if (Mask != ActualMask)
- return false;
-
- return true;
+ return Mask == ActualMask;
}
static bool matchPairwiseReductionAtLevel(const BinaryOperator *BinOp,
}
static bool matchPairwiseReductionAtLevel(const BinaryOperator *BinOp,
@@
-503,12
+500,12
@@
unsigned CostModelAnalysis::getInstructionCost(const Instruction *I) const {
}
case Instruction::Call:
if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) {
}
case Instruction::Call:
if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) {
- SmallVector<
Type*, 4> Ty
s;
+ SmallVector<
Value *, 4> Arg
s;
for (unsigned J = 0, JE = II->getNumArgOperands(); J != JE; ++J)
for (unsigned J = 0, JE = II->getNumArgOperands(); J != JE; ++J)
-
Tys.push_back(II->getArgOperand(J)->getType(
));
+
Args.push_back(II->getArgOperand(J
));
return TTI->getIntrinsicInstrCost(II->getIntrinsicID(), II->getType(),
return TTI->getIntrinsicInstrCost(II->getIntrinsicID(), II->getType(),
-
Ty
s);
+
Arg
s);
}
return -1;
default:
}
return -1;
default: