mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 19:18:13 +08:00
CodeGen: Remove unused code
llvm-svn: 139096
This commit is contained in:
@@ -410,15 +410,10 @@ public:
|
||||
}
|
||||
|
||||
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 @@ public:
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user