[PATCH] D18384: CodeGen: Correct specification of PHI nodes

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 11:24:04 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL264607: CodeGen: Correct specification of PHI nodes (authored by matze).

Changed prior to commit:
  http://reviews.llvm.org/D18384?vs=51379&id=51811#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18384

Files:
  llvm/trunk/include/llvm/Target/Target.td
  llvm/trunk/test/CodeGen/AMDGPU/valu-i1.ll

Index: llvm/trunk/include/llvm/Target/Target.td
===================================================================
--- llvm/trunk/include/llvm/Target/Target.td
+++ llvm/trunk/include/llvm/Target/Target.td
@@ -773,7 +773,7 @@
 let isCodeGenOnly = 1, isPseudo = 1, hasNoSchedulingInfo = 1,
     Namespace = "TargetOpcode" in {
 def PHI : Instruction {
-  let OutOperandList = (outs);
+  let OutOperandList = (outs unknown:$dst);
   let InOperandList = (ins variable_ops);
   let AsmString = "PHINODE";
 }
Index: llvm/trunk/test/CodeGen/AMDGPU/valu-i1.ll
===================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/valu-i1.ll
+++ llvm/trunk/test/CodeGen/AMDGPU/valu-i1.ll
@@ -138,11 +138,11 @@
 ; SI: BB#4:
 ; SI: buffer_store_dword
 ; SI: v_cmp_ge_i64_e64 [[CMP:s\[[0-9]+:[0-9]+\]]]
-; SI: s_or_b64 [[COND_STATE]], [[CMP]], [[COND_STATE]]
+; SI: s_or_b64 [[TMP:s\[[0-9]+:[0-9]+\]]], [[CMP]], [[COND_STATE]]
 
 ; SI: BB3_5:
 ; SI: s_or_b64 exec, exec, [[ORNEG2]]
-; SI: s_or_b64 [[COND_STATE]], [[ORNEG2]], [[COND_STATE]]
+; SI: s_or_b64 [[COND_STATE]], [[ORNEG2]], [[TMP]]
 ; SI: s_andn2_b64 exec, exec, [[COND_STATE]]
 ; SI: s_cbranch_execnz BB3_3
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18384.51811.patch
Type: text/x-patch
Size: 1193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160328/d12042c0/attachment.bin>


More information about the llvm-commits mailing list