From 6525aa35291873625054711c5cb40ead8c8d7ad1 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 25 Sep 2015 16:58:27 +0000 Subject: [PATCH] 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. llvm-svn: 248583 --- llvm/lib/Target/AMDGPU/SIInstrInfo.td | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.td b/llvm/lib/Target/AMDGPU/SIInstrInfo.td index 7eb6ab319bb3..0a73419dbbe1 100644 --- a/llvm/lib/Target/AMDGPU/SIInstrInfo.td +++ b/llvm/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; }