summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/ralloc_util.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-07-08 21:10:55 -0700
committer Andreas Gampe <agampe@google.com> 2014-07-08 21:10:55 -0700
commit01758d53a96a5adc914a2433279a9c283e5a4c2a (patch)
treed30f0b2cb9fdc8d084992578492c24f78c38f60a /compiler/dex/quick/ralloc_util.cc
parent09341a57b143daffade4e04623b2daea7235b73e (diff)
ART: Fix FP promotion
A previous CL changed != by mistake to ==, causing incorrect promotion results for ARM32. Change-Id: I62572e3e86d38a55be7043196027563735010b30
Diffstat (limited to 'compiler/dex/quick/ralloc_util.cc')
-rw-r--r--compiler/dex/quick/ralloc_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/quick/ralloc_util.cc b/compiler/dex/quick/ralloc_util.cc
index 13bd4432d7..e8fc919d5f 100644
--- a/compiler/dex/quick/ralloc_util.cc
+++ b/compiler/dex/quick/ralloc_util.cc
@@ -1276,7 +1276,7 @@ void Mir2Lir::DoPromotion() {
if (cu_->instruction_set == kThumb2) {
bool wide = fp_regs[i].s_reg & STARTING_WIDE_SREG;
if (wide) {
- if (promotion_map_[p_map_idx + 1].fp_location == kLocPhysReg) {
+ if (promotion_map_[p_map_idx + 1].fp_location != kLocPhysReg) {
// Ignore result - if can't alloc double may still be able to alloc singles.
AllocPreservedDouble(low_sreg);
}