summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-02-03 08:19:11 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-02-03 08:19:11 +0000
commit0c2c3f6e815dad8e71ae850e32855a45f9625d32 (patch)
tree75070a254aa61e220132ddf194ce6b7383ff9cc0 /lib
parentb6eabff1699589dc8748c4b34706a3731cd43bfe (diff)
downloadllvm-0c2c3f6e815dad8e71ae850e32855a45f9625d32.tar.gz
llvm-0c2c3f6e815dad8e71ae850e32855a45f9625d32.tar.bz2
llvm-0c2c3f6e815dad8e71ae850e32855a45f9625d32.tar.xz
Hack on vectors too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 761b57d2ec..404b53db86 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)))) {