diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-02-03 08:19:11 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-02-03 08:19:11 +0000 |
commit | c7a4ba044b45ed8174d8d50e2c36961236ce510c (patch) | |
tree | 611fc8a64ee5a2552d29b0161998b985da15e124 | |
parent | e6e3a7f6ea75524c4c7c2805e06d0f20a18a8a7a (diff) | |
download | bcm5719-llvm-c7a4ba044b45ed8174d8d50e2c36961236ce510c.tar.gz bcm5719-llvm-c7a4ba044b45ed8174d8d50e2c36961236ce510c.zip |
Hack on vectors too.
llvm-svn: 46684
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)))) { |