From 3054a90063d379ab8c9e5a42a7daf0d644b48b07 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 21 Nov 2014 13:33:51 +0000 Subject: Fix the computation of linear ordering. The register allocator makes assumptions on the order, and we ended up not computing the right one. The algorithm worked fine when the loop header is the block branching to the exit, but in the presence of breaks or do/while, it was incorrect. Change-Id: Iad0a89872cd3f7b7a8b2bdf560f0d03493f93ba5 --- compiler/optimizing/nodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 7d52d7d221..19cd120c5c 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -233,7 +233,7 @@ class HLoopInformation : public ArenaObject { return false; } - int NumberOfBackEdges() const { + size_t NumberOfBackEdges() const { return back_edges_.Size(); } -- cgit v1.2.3-59-g8ed1b