From 931ec72ebf441d6da6252bc5404f96f5e95b3d0a Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 27 Aug 2009 18:16:24 +0000 Subject: [PATCH] Don't mark CMOV_GR8 as two-address, or commutable, since it's a pseudo. llvm-svn: 80271 --- llvm/lib/Target/X86/X86InstrInfo.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td index ebd5f96ec12b..e76031039529 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.td +++ b/llvm/lib/Target/X86/X86InstrInfo.td @@ -1034,19 +1034,19 @@ let isTwoAddress = 1 in { // Conditional moves let Uses = [EFLAGS] in { -let isCommutable = 1 in { // X86 doesn't have 8-bit conditional moves. Use a customDAGSchedInserter to // emit control flow. An alternative to this is to mark i8 SELECT as Promote, // however that requires promoting the operands, and can induce additional // i8 register pressure. -let usesCustomDAGSchedInserter = 1 in +let usesCustomDAGSchedInserter = 1, isTwoAddress = 0 in def CMOV_GR8 : I<0, Pseudo, (outs GR8:$dst), (ins GR8:$src1, GR8:$src2, i8imm:$cond), "#CMOV_GR8 PSEUDO!", [(set GR8:$dst, (X86cmov GR8:$src1, GR8:$src2, imm:$cond, EFLAGS))]>; +let isCommutable = 1 in { def CMOVB16rr : I<0x42, MRMSrcReg, // if