Index: src/compiler/ia32/instruction-scheduler-ia32.cc |
diff --git a/src/compiler/ia32/instruction-scheduler-ia32.cc b/src/compiler/ia32/instruction-scheduler-ia32.cc |
index 803fdf6fd6905b77a74dfc41f93dd29c9ca4afac..f341db43169409978e5831720b70ed917246fe69 100644 |
--- a/src/compiler/ia32/instruction-scheduler-ia32.cc |
+++ b/src/compiler/ia32/instruction-scheduler-ia32.cc |
@@ -127,6 +127,11 @@ int InstructionScheduler::GetTargetInstructionFlags( |
case kIA32Poke: |
return kHasSideEffect; |
+ case kIA32Xchgb: |
+ case kIA32Xchgw: |
+ case kIA32Xchgl: |
+ return kIsLoadOperation | kHasSideEffect; |
+ |
#define CASE(Name) case k##Name: |
COMMON_ARCH_OPCODE_LIST(CASE) |
#undef CASE |