CodeGen: Remove unused code
llvm-svn: 139096
diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp
index 5f4990e..cb8a01f 100644
--- a/polly/lib/CodeGeneration.cpp
+++ b/polly/lib/CodeGeneration.cpp
@@ -410,15 +410,10 @@
}
void copyBinInst(const BinaryOperator *Inst, ValueMapT &BBMap,
- ValueMapT &vectorMap, VectorValueMapT &scalarMaps,
- int vectorDimension, int vectorWidth) {
+ ValueMapT &vectorMap, int vectorDimension, int vectorWidth) {
Value *opZero = Inst->getOperand(0);
Value *opOne = Inst->getOperand(1);
- // This is an old instruction that can be ignored.
- if (!opZero && !opOne)
- return;
-
Value *newOpZero, *newOpOne;
newOpZero = getOperand(opZero, BBMap, &vectorMap);
newOpOne = getOperand(opOne, BBMap, &vectorMap);
@@ -535,8 +530,7 @@
if (isVectorBlock() && hasVectorOperands(Inst, vectorMap)) {
if (const BinaryOperator *binaryInst = dyn_cast<BinaryOperator>(Inst))
- copyBinInst(binaryInst, BBMap, vectorMap, scalarMaps, vectorDimension,
- vectorWidth);
+ copyBinInst(binaryInst, BBMap, vectorMap, vectorDimension, vectorWidth);
else if (const StoreInst *store = dyn_cast<StoreInst>(Inst))
copyVectorStore(store, BBMap, vectorMap, scalarMaps, vectorDimension,
vectorWidth);