Skip to content

Commit

Permalink
Reverted r313993.
Browse files Browse the repository at this point in the history
This patch produces a crash and hexagon_vector_loop_carried_reuse_constant.ll test fails on Windows (llvm-clang-x86_64-expensive-checks-win build bot).



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314361 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gkistanova committed Sep 27, 2017
1 parent f165493 commit 4e27573
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 101 deletions.
15 changes: 0 additions & 15 deletions lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,21 +302,6 @@ bool HexagonVectorLoopCarriedReuse::isEquivalentOperation(Instruction *I1,
return false;
}
}

// If both the Instructions are of Vector Type and any of the element
// is integer constant, check their values too for equivalence.
if (I1->getType()->isVectorTy() && I2->getType()->isVectorTy()) {
unsigned NumOperands = I1->getNumOperands();
for (unsigned i = 0; i < NumOperands; ++i) {
ConstantInt *C1 = dyn_cast<ConstantInt>(I1->getOperand(i));
ConstantInt *C2 = dyn_cast<ConstantInt>(I2->getOperand(i));
if(!C1) continue;
assert(C2);
if (C1->getSExtValue() != C2->getSExtValue())
return false;
}
}

return true;
}

Expand Down
86 changes: 0 additions & 86 deletions test/CodeGen/Hexagon/hexagon_vector_loop_carried_reuse_constant.ll

This file was deleted.

0 comments on commit 4e27573

Please sign in to comment.