diff options
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 3732823f167..d964bf17a0f 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -6394,12 +6394,20 @@ 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::MAXCPDrr: + case X86::MAXCPSrr: case X86::MAXCSDrr: case X86::MAXCSSrr: + case X86::MINCPDrr: + case X86::MINCPSrr: case X86::MINCSDrr: case X86::MINCSSrr: + case X86::VMAXCPDrr: + case X86::VMAXCPSrr: case X86::VMAXCSDrr: case X86::VMAXCSSrr: + case X86::VMINCPDrr: + case X86::VMINCPSrr: case X86::VMINCSDrr: case X86::VMINCSSrr: return true; |