From: Nadav Rotem Date: Sun, 12 Jun 2011 14:40:30 +0000 (+0000) Subject: Bugfix: When looking for a legal vector type, stop looking when a non-simple X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=65255b98ad5b35b14df8aebcda38e9d5cc646886;p=oota-llvm.git Bugfix: When looking for a legal vector type, stop looking when a non-simple element type is found. This fix addresses some of the tests in Duncan's testcase (forthcoming). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132891 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 3e36fb7bb54..093e79b1c1c 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1853,6 +1853,7 @@ private: // If there is no simple vector type with this many elements then there // cannot be a larger legal vector type. Note that this assumes that // there are no skipped intermediate vector types in the simple types. + if (!EltVT.isSimple()) break; MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); if (LargerVector == MVT()) break;