OSDN Git Service

Fix a copy-paste bug.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Mon, 2 Mar 2015 20:37:10 +0000 (20:37 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Mon, 2 Mar 2015 20:37:10 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231006 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/BasicTTIImpl.h

index ff85b06..531db10 100644 (file)
@@ -534,7 +534,7 @@ public:
       for (unsigned i = 0, ie = Tys.size(); i != ie; ++i) {
         if (Tys[i]->isVectorTy()) {
           ScalarizationCost += getScalarizationOverhead(Tys[i], false, true);
-          ScalarCalls = std::max(ScalarCalls, RetTy->getVectorNumElements());
+          ScalarCalls = std::max(ScalarCalls, Tys[i]->getVectorNumElements());
         }
       }