commit | 0c2c3f6e815dad8e71ae850e32855a45f9625d32 | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Sun Feb 03 08:19:11 2008 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Sun Feb 03 08:19:11 2008 +0000 |
tree | 75070a254aa61e220132ddf194ce6b7383ff9cc0 | |
parent | b6eabff1699589dc8748c4b34706a3731cd43bfe [diff] [blame] |
Hack on vectors too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46684 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 761b57d..404b53d 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2124,7 +2124,7 @@ 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)))) {