From: Chris Lattner Date: Fri, 28 Apr 2006 04:14:49 +0000 (+0000) Subject: Fix Transforms/Reassociate/2006-04-27-ReassociateVector.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ae74f555522298bef3be8a173163bf778d59adf9;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index e495ffafbb9..353cd1435a6 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(BI) || BI->getType()->isFloatingPoint()) + if (!isa(BI) || BI->getType()->isFloatingPoint() || + isa(BI->getType())) continue; // Floating point ops are not associative. // If this is a subtract instruction which is not already in negate form,