diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-01-04 18:40:39 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-01-04 18:40:39 +0000 |
commit | 5d592d202a4eaa6cc71b8f9a655a89446b2a2ee6 (patch) | |
tree | d97847373c15839d05b0b3bd930306a901cf95e7 | |
parent | 642469f5826a29beb7d8abf675fc669c42f804c9 (diff) |
Change the default number of registers to prevent unrolling on targets that dont have this hook.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171489 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetTransformImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetTransformImpl.cpp b/lib/Target/TargetTransformImpl.cpp index 7d663f57f9..08795fcaf1 100644 --- a/lib/Target/TargetTransformImpl.cpp +++ b/lib/Target/TargetTransformImpl.cpp @@ -172,7 +172,7 @@ VectorTargetTransformImpl::getScalarizationOverhead(Type *Ty, } unsigned VectorTargetTransformImpl::getNumberOfRegisters(bool Vector) const { - return 8; + return 1; } unsigned VectorTargetTransformImpl::getArithmeticInstrCost(unsigned Opcode, |