Change the default number of registers to prevent unrolling on targets that dont...
authorNadav Rotem <nrotem@apple.com>
Fri, 4 Jan 2013 18:40:39 +0000 (18:40 +0000)
committerNadav Rotem <nrotem@apple.com>
Fri, 4 Jan 2013 18:40:39 +0000 (18:40 +0000)
llvm-svn: 171489

llvm/lib/Target/TargetTransformImpl.cpp

index 7d663f5..08795fc 100644 (file)
@@ -172,7 +172,7 @@ VectorTargetTransformImpl::getScalarizationOverhead(Type *Ty,
 }
 
 unsigned VectorTargetTransformImpl::getNumberOfRegisters(bool Vector) const {
-  return 8;
+  return 1;
 }
 
 unsigned VectorTargetTransformImpl::getArithmeticInstrCost(unsigned Opcode,