From: Matt Arsenault Date: Fri, 25 Sep 2015 16:58:27 +0000 (+0000) Subject: AMDGPU: Fix not adding exec to defs of cmpx instruction pseudos X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=88ba582891a62e78083da17610a746b4dfa13b30;p=oota-llvm.git AMDGPU: Fix not adding exec to defs of cmpx instruction pseudos This was only set on the final _si/_vi version, but not on the pseudos most of codegen sees. No test since these instructions aren't used yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248583 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIInstrInfo.td b/lib/Target/AMDGPU/SIInstrInfo.td index 7eb6ab319bb..0a73419dbbe 100644 --- a/lib/Target/AMDGPU/SIInstrInfo.td +++ b/lib/Target/AMDGPU/SIInstrInfo.td @@ -1495,6 +1495,7 @@ multiclass VOP3_C_m , VOP2_REV { + let Defs = !if(defExec, [EXEC], []); let SchedRW = sched; } @@ -1699,6 +1700,7 @@ multiclass VOPC_m pattern, string revOpName = "", string asm = opName#"_e32 "#op_asm, string alias_asm = opName#" "#op_asm> { def "" : VOPC_Pseudo { + let Defs = !if(DefExec, [VCC, EXEC], [VCC]); let SchedRW = sched; }