[llvm-commits] [llvm] r165997 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Nadav Rotem
nrotem at apple.com
Mon Oct 15 15:50:02 PDT 2012
Author: nadav
Date: Mon Oct 15 17:50:02 2012
New Revision: 165997
URL: http://llvm.org/viewvc/llvm-project?rev=165997&view=rev
Log:
LTO also needs to initialize the TargetTransform infrastructure.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=165997&r1=165996&r2=165997&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Mon Oct 15 17:50:02 2012
@@ -371,6 +371,8 @@
// Add an appropriate DataLayout instance for this module...
passes.add(new DataLayout(*_target->getDataLayout()));
+ passes.add(new TargetTransformInfo(_target->getScalarTargetTransformInfo(),
+ _target->getVectorTargetTransformInfo()));
// Enabling internalize here would use its AllButMain variant. It
// keeps only main if it exists and does nothing for libraries. Instead
More information about the llvm-commits
mailing list