[llvm] r248583 - AMDGPU: Fix not adding exec to defs of cmpx instruction pseudos

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 09:58:28 PDT 2015


Author: arsenm
Date: Fri Sep 25 11:58:27 2015
New Revision: 248583

URL: http://llvm.org/viewvc/llvm-project?rev=248583&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td

Modified: llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td?rev=248583&r1=248582&r2=248583&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td Fri Sep 25 11:58:27 2015
@@ -1495,6 +1495,7 @@ multiclass VOP3_C_m <vop op, dag outs, d
 
   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, str
                    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;
   }
 




More information about the llvm-commits mailing list