OSDN Git Service

don't copy all itinerary data
authorChris Lattner <sabre@nondot.org>
Thu, 9 Mar 2006 07:13:00 +0000 (07:13 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 9 Mar 2006 07:13:00 +0000 (07:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26633 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp

index e088f71..55b68f8 100644 (file)
@@ -292,7 +292,7 @@ void ScheduleDAGSimple::IncludeNode(NodeInfo *NI) {
 ///
 void ScheduleDAGSimple::GatherSchedulingInfo() {
   // Get instruction itineraries for the target
-  const InstrItineraryData InstrItins = TM.getInstrItineraryData();
+  const InstrItineraryData &InstrItins = TM.getInstrItineraryData();
   
   // For each node
   for (unsigned i = 0, N = NodeCount; i < N; i++) {