summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2010-09-05 13:42:32 +0000
committerLang Hames <lhames@gmail.com>2010-09-05 13:42:32 +0000
commit64a4a1361745c449e1a328258fc771cd625f4210 (patch)
tree1964dae4684ee0f04b79839d2a1f95946eb10dc0 /llvm/lib/CodeGen
parente3ac69eca31f9c1d85886e41e73314ad61f88e70 (diff)
downloadbcm5719-llvm-64a4a1361745c449e1a328258fc771cd625f4210.tar.gz
bcm5719-llvm-64a4a1361745c449e1a328258fc771cd625f4210.zip
Added initialisers for reduction rule counters.
llvm-svn: 113108
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PBQP/Solution.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PBQP/Solution.h b/llvm/lib/CodeGen/PBQP/Solution.h
index 047fd04c7cb..9c40ed7070a 100644
--- a/llvm/lib/CodeGen/PBQP/Solution.h
+++ b/llvm/lib/CodeGen/PBQP/Solution.h
@@ -34,6 +34,10 @@ namespace PBQP {
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(); }
OpenPOWER on IntegriCloud