Index: src/compiler/x64/instruction-scheduler-x64.cc |
diff --git a/src/compiler/x64/instruction-scheduler-x64.cc b/src/compiler/x64/instruction-scheduler-x64.cc |
index 3c31965d7202afc8d8369ef832826cdbf3201f2e..6133bd875aa3811860d886478161b88f68dc6c8b 100644 |
--- a/src/compiler/x64/instruction-scheduler-x64.cc |
+++ b/src/compiler/x64/instruction-scheduler-x64.cc |
@@ -168,6 +168,11 @@ int InstructionScheduler::GetTargetInstructionFlags( |
case kX64Poke: |
return kHasSideEffect; |
+ case kX64Xchgb: |
+ case kX64Xchgw: |
+ case kX64Xchgl: |
+ return kIsLoadOperation | kHasSideEffect; |
+ |
#define CASE(Name) case k##Name: |
COMMON_ARCH_OPCODE_LIST(CASE) |
#undef CASE |