llvm.org GIT mirror llvm / b24ce3e
Fix another place where we build the TTI pass to the new interface. Sorry for the noise here, 'make check' doesn't build this code. =/ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171623 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
371371
372372 // Add an appropriate DataLayout instance for this module...
373373 passes.add(new DataLayout(*_target->getDataLayout()));
374 passes.add(new TargetTransformInfo(_target->getScalarTargetTransformInfo(),
375 _target->getVectorTargetTransformInfo()));
374 passes.add(createNoTTIPass(_target->getScalarTargetTransformInfo(),
375 _target->getVectorTargetTransformInfo()));
376376
377377 // Enabling internalize here would use its AllButMain variant. It
378378 // keeps only main if it exists and does nothing for libraries. Instead