From c7a4ba044b45ed8174d8d50e2c36961236ce510c Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 3 Feb 2008 08:19:11 +0000 Subject: Hack on vectors too. llvm-svn: 46684 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp') diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 761b57d2ec7..404b53db863 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -2124,7 +2124,7 @@ Instruction *InstCombiner::visitAdd(BinaryOperator &I) { return R; // W*X + Y*Z --> W * (X+Z) iff W == Y - if (I.getType()->isInteger()) { + if (I.getType()->isIntOrIntVector()) { Value *W, *X, *Y, *Z; if (match(LHS, m_Mul(m_Value(W), m_Value(X))) && match(RHS, m_Mul(m_Value(Y), m_Value(Z)))) { -- cgit v1.2.3