diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2017-09-27 23:09:14 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2017-09-27 23:09:14 +0000 |
commit | 1c6f0bb63e6d510513127e16775aec6a79ffdbf4 (patch) | |
tree | 0a27649471226c9459fb4799da44cd446f0a88e6 /llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp | |
parent | 0cd25942f7a4016d0d51b3ec672874d4dc16fb7d (diff) | |
download | bcm5719-llvm-1c6f0bb63e6d510513127e16775aec6a79ffdbf4.tar.gz bcm5719-llvm-1c6f0bb63e6d510513127e16775aec6a79ffdbf4.zip |
Reverted r313993.
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).
llvm-svn: 314361
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp b/llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp index 7052503186e..77dc5f5eee7 100644 --- a/llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp +++ b/llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp @@ -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; } |