Index: src/compiler/instruction-selector-impl.h |
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h |
index e22f5458697b852f59300dc5e4011298673da45e..88283d489877caeef91ed8e431c82e19a007d9fa 100644 |
--- a/src/compiler/instruction-selector-impl.h |
+++ b/src/compiler/instruction-selector-impl.h |
@@ -291,41 +291,7 @@ class FlagsContinuation final { |
void Commute() { |
DCHECK(!IsNone()); |
- switch (condition_) { |
- case kEqual: |
- case kNotEqual: |
- case kOverflow: |
- case kNotOverflow: |
- return; |
- case kSignedLessThan: |
- condition_ = kSignedGreaterThan; |
- return; |
- case kSignedGreaterThanOrEqual: |
- condition_ = kSignedLessThanOrEqual; |
- return; |
- case kSignedLessThanOrEqual: |
- condition_ = kSignedGreaterThanOrEqual; |
- return; |
- case kSignedGreaterThan: |
- condition_ = kSignedLessThan; |
- return; |
- case kUnsignedLessThan: |
- condition_ = kUnsignedGreaterThan; |
- return; |
- case kUnsignedGreaterThanOrEqual: |
- condition_ = kUnsignedLessThanOrEqual; |
- return; |
- case kUnsignedLessThanOrEqual: |
- condition_ = kUnsignedGreaterThanOrEqual; |
- return; |
- case kUnsignedGreaterThan: |
- condition_ = kUnsignedLessThan; |
- return; |
- case kUnorderedEqual: |
- case kUnorderedNotEqual: |
- return; |
- } |
- UNREACHABLE(); |
+ condition_ = CommuteFlagsCondition(condition_); |
} |
void OverwriteAndNegateIfEqual(FlagsCondition condition) { |