[llvm-commits] [llvm] r132891 - /llvm/trunk/include/llvm/Target/TargetLowering.h

Nadav Rotem nadav.rotem at intel.com
Sun Jun 12 07:40:30 PDT 2011


Author: nadav
Date: Sun Jun 12 09:40:30 2011
New Revision: 132891

URL: http://llvm.org/viewvc/llvm-project?rev=132891&view=rev
Log:
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).


Modified:
    llvm/trunk/include/llvm/Target/TargetLowering.h

Modified: llvm/trunk/include/llvm/Target/TargetLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetLowering.h?rev=132891&r1=132890&r2=132891&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetLowering.h (original)
+++ llvm/trunk/include/llvm/Target/TargetLowering.h Sun Jun 12 09:40:30 2011
@@ -1853,6 +1853,7 @@
       // 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;
 





More information about the llvm-commits mailing list