From ea81edf351c110c97407bde489a43c48b8cc3a9c Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Thu, 9 Jul 2015 22:48:54 +0000 Subject: [x86] enable machine combiner reassociations for scalar double-precision adds llvm-svn: 241871 --- llvm/lib/Target/X86/X86InstrInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/X86') diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 5484ae91855..fdfdac90033 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -6408,7 +6408,9 @@ static bool hasReassocSibling(const MachineInstr &Inst, bool &Commuted) { // 2. Other math / logic operations (and, or) static bool isAssociativeAndCommutative(unsigned Opcode) { switch (Opcode) { + case X86::ADDSDrr: case X86::ADDSSrr: + case X86::VADDSDrr: case X86::VADDSSrr: case X86::MULSSrr: case X86::VMULSSrr: -- cgit v1.2.3