From 2c540446305cf2393f3aeffba3370b24f1b53a2c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Sep 2005 19:01:44 +0000 Subject: [PATCH] Nate pointed out that mulh[us] are commutative as well. Thanks! llvm-svn: 23500 --- lib/Target/PowerPC/PowerPCInstrInfo.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/PowerPC/PowerPCInstrInfo.td b/lib/Target/PowerPC/PowerPCInstrInfo.td index 18eaf344914..94f504a23ab 100644 --- a/lib/Target/PowerPC/PowerPCInstrInfo.td +++ b/lib/Target/PowerPC/PowerPCInstrInfo.td @@ -113,8 +113,8 @@ def sub : SDNode<"ISD::SUB" , SDTBinOp>; def mul : SDNode<"ISD::MUL" , SDTBinOp , [SDNPCommutative]>; def sdiv : SDNode<"ISD::SDIV" , SDTBinOp>; def udiv : SDNode<"ISD::UDIV" , SDTIntBinOp>; -def mulhs : SDNode<"ISD::MULHS" , SDTIntBinOp>; -def mulhu : SDNode<"ISD::MULHU" , SDTIntBinOp>; +def mulhs : SDNode<"ISD::MULHS" , SDTIntBinOp, [SDNPCommutative]>; +def mulhu : SDNode<"ISD::MULHU" , SDTIntBinOp, [SDNPCommutative]>; def sext_inreg : SDNode<"ISD::SIGN_EXTEND_INREG", SDTExtInreg>; def ctlz : SDNode<"ISD::CTLZ" , SDTIntUnaryOp>;