summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-09-25 16:58:27 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-09-25 16:58:27 +0000
commit6525aa35291873625054711c5cb40ead8c8d7ad1 (patch)
tree7a3efa3a298bf19b0be8e006cbd42a7431217065 /llvm/lib/Target/AMDGPU
parent5f70436c4921cbc0c4f684f465d15f01459c12af (diff)
downloadbcm5719-llvm-6525aa35291873625054711c5cb40ead8c8d7ad1.tar.gz
bcm5719-llvm-6525aa35291873625054711c5cb40ead8c8d7ad1.zip
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
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInstrInfo.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.td b/llvm/lib/Target/AMDGPU/SIInstrInfo.td
index 7eb6ab319bb..0a73419dbbe 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.td
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.td
@@ -1495,6 +1495,7 @@ multiclass VOP3_C_m <vop op, dag outs, dag ins, string asm,
def "" : VOP3_Pseudo <outs, ins, pattern, opName>,
VOP2_REV<revOp#"_e64", !eq(revOp, opName)> {
+ let Defs = !if(defExec, [EXEC], []);
let SchedRW = sched;
}
@@ -1699,6 +1700,7 @@ multiclass VOPC_m <vopc op, dag ins, string op_asm, list<dag> pattern,
string revOpName = "", string asm = opName#"_e32 "#op_asm,
string alias_asm = opName#" "#op_asm> {
def "" : VOPC_Pseudo <ins, pattern, opName> {
+ let Defs = !if(DefExec, [VCC, EXEC], [VCC]);
let SchedRW = sched;
}
OpenPOWER on IntegriCloud