[llvm-commits] [llvm] r113108 - /llvm/trunk/lib/CodeGen/PBQP/Solution.h
Lang Hames
lhames at gmail.com
Sun Sep 5 06:42:32 PDT 2010
Author: lhames
Date: Sun Sep 5 08:42:32 2010
New Revision: 113108
URL: http://llvm.org/viewvc/llvm-project?rev=113108&view=rev
Log:
Added initialisers for reduction rule counters.
Modified:
llvm/trunk/lib/CodeGen/PBQP/Solution.h
Modified: llvm/trunk/lib/CodeGen/PBQP/Solution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PBQP/Solution.h?rev=113108&r1=113107&r2=113108&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PBQP/Solution.h (original)
+++ llvm/trunk/lib/CodeGen/PBQP/Solution.h Sun Sep 5 08:42:32 2010
@@ -34,6 +34,10 @@
public:
+ /// \brief Initialise an empty solution.
+ Solution()
+ : r0Reductions(0), r1Reductions(0), r2Reductions(0), rNReductions(0) {}
+
/// \brief Number of nodes for which selections have been made.
/// @return Number of nodes for which selections have been made.
unsigned numNodes() const { return selections.size(); }
More information about the llvm-commits
mailing list