OSDN Git Service

ART: Nano optimization of LiveInterval
authorDavid Brazdil <dbrazdil@google.com>
Wed, 25 Feb 2015 11:57:05 +0000 (11:57 +0000)
committerDavid Brazdil <dbrazdil@google.com>
Wed, 25 Feb 2015 11:57:05 +0000 (11:57 +0000)
commit714e14fe61ebd1d1a97599b429cbbb0a54bbe6c4
treed77234e69542857861fe3017f196d940cf37abe7
parent2cfa9f2743f4a120070e83b1e34cbec22742780d
ART: Nano optimization of LiveInterval

Shuffling the order of conditions in the FirstIntersectionWith method
of LiveInterval class can save a couple of comparisons. Even though
this is a tiny optimization, it can save some compilation time since
the method is heavily used during register allocation.

Change-Id: I1817bd95db2d0eb96cc06fb2e9e06ac1cea784fe
compiler/optimizing/ssa_liveness_analysis.h