[llvm-commits] [llvm] r171623 - /llvm/trunk/tools/lto/LTOCodeGenerator.cpp

Chandler Carruth chandlerc at gmail.com
Sat Jan 5 03:54:36 PST 2013


Author: chandlerc
Date: Sat Jan  5 05:54:35 2013
New Revision: 171623

URL: http://llvm.org/viewvc/llvm-project?rev=171623&view=rev
Log:
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. =/

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=171623&r1=171622&r2=171623&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Sat Jan  5 05:54:35 2013
@@ -372,8 +372,8 @@
 
   // Add an appropriate DataLayout instance for this module...
   passes.add(new DataLayout(*_target->getDataLayout()));
-  passes.add(new TargetTransformInfo(_target->getScalarTargetTransformInfo(),
-                                     _target->getVectorTargetTransformInfo()));
+  passes.add(createNoTTIPass(_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