From 0c2c3f6e815dad8e71ae850e32855a45f9625d32 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 3 Feb 2008 08:19:11 +0000 Subject: [PATCH] Hack on vectors too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46684 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 761b57d2ec7..404b53db863 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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)))) {