diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-28 04:14:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-28 04:14:49 +0000 |
commit | ae74f555522298bef3be8a173163bf778d59adf9 (patch) | |
tree | 1b7a9060fc3a290c7d2f2c65dabe29f54027f313 /lib/Transforms | |
parent | 86175f47b6df7f07303455dd7d2b553308483294 (diff) | |
download | external_llvm-ae74f555522298bef3be8a173163bf778d59adf9.zip external_llvm-ae74f555522298bef3be8a173163bf778d59adf9.tar.gz external_llvm-ae74f555522298bef3be8a173163bf778d59adf9.tar.bz2 |
Fix Transforms/Reassociate/2006-04-27-ReassociateVector.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index e495ffa..353cd14 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/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, |