[x86] enable machine combiner reassociations for scalar single-precision maximums
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.cpp
index bd3a3e5165da4349f27b281f6999da2edaebbc4a..d9ee8b3c6d05424f3e27a6e786552263d2d7a44a 100644 (file)
@@ -6394,7 +6394,9 @@ static bool isAssociativeAndCommutative(const MachineInstr &Inst) {
   // Normal min/max instructions are not commutative because of NaN and signed
   // zero semantics, but these are. Thus, there's no need to check for global
   // relaxed math; the instructions themselves have the properties we need.
+  case X86::MAXCSSrr:
   case X86::MINCSSrr:
+  case X86::VMAXCSSrr:
   case X86::VMINCSSrr:
     return true;
   case X86::ADDPDrr: