Fixed CanBeMoved for field access
Change-Id: I36a1f4a468f3701e0608d71f64d64049c54aec18
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index b9b2304..0fc1fd8 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -2152,7 +2152,7 @@
SetRawInputAt(0, value);
}
- bool CanBeMoved() const OVERRIDE { return IsVolatile(); }
+ bool CanBeMoved() const OVERRIDE { return !IsVolatile(); }
bool InstructionDataEquals(HInstruction* other) const OVERRIDE {
HInstanceFieldGet* other_get = other->AsInstanceFieldGet();
@@ -2513,7 +2513,7 @@
}
- bool CanBeMoved() const OVERRIDE { return IsVolatile(); }
+ bool CanBeMoved() const OVERRIDE { return !IsVolatile(); }
bool InstructionDataEquals(HInstruction* other) const OVERRIDE {
HStaticFieldGet* other_get = other->AsStaticFieldGet();