summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-28 04:14:49 +0000
committerChris Lattner <sabre@nondot.org>2006-04-28 04:14:49 +0000
commite63d808b6e027272e4f40252fccb2543889e18b0 (patch)
treec037b9db0ae1762cc3264da19d790d7476d00ca1 /llvm/lib/Transforms
parent7abfb81e304c9293439b8527e2865b320d97ae3c (diff)
downloadbcm5719-llvm-e63d808b6e027272e4f40252fccb2543889e18b0.tar.gz
bcm5719-llvm-e63d808b6e027272e4f40252fccb2543889e18b0.zip
Fix Transforms/Reassociate/2006-04-27-ReassociateVector.ll
llvm-svn: 28007
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/Reassociate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp
index e495ffafbb9..353cd1435a6 100644
--- a/llvm/lib/Transforms/Scalar/Reassociate.cpp
+++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp
@@ -23,10 +23,10 @@
#define DEBUG_TYPE "reassociate"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Constants.h"
+#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Pass.h"
-#include "llvm/Type.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/Debug.h"
@@ -754,7 +754,8 @@ void Reassociate::ReassociateBB(BasicBlock *BB) {
}
// Reject cases where it is pointless to do this.
- if (!isa<BinaryOperator>(BI) || BI->getType()->isFloatingPoint())
+ if (!isa<BinaryOperator>(BI) || BI->getType()->isFloatingPoint() ||
+ isa<PackedType>(BI->getType()))
continue; // Floating point ops are not associative.
// If this is a subtract instruction which is not already in negate form,
OpenPOWER on IntegriCloud