[PATCH] D16600: AMDGPU/SI: Fix commuting of 32-bit VOPC instructions
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 27 07:57:55 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL258936: AMDGPU/SI: Fix commuting of 32-bit VOPC instructions (authored by tstellar).
Changed prior to commit:
http://reviews.llvm.org/D16600?vs=46048&id=46139#toc
Repository:
rL LLVM
http://reviews.llvm.org/D16600
Files:
llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td
Index: llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td
+++ llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.td
@@ -1788,7 +1788,8 @@
list<SchedReadWrite> sched,
string revOpName = "", string asm = opName#"_e32 "#op_asm,
string alias_asm = opName#" "#op_asm> {
- def "" : VOPC_Pseudo <ins, pattern, opName> {
+ def "" : VOPC_Pseudo <ins, pattern, opName>,
+ VOP2_REV<revOpName#"_e32", !eq(revOpName, opName)> {
let Defs = !if(DefExec, [VCC, EXEC], [VCC]);
let SchedRW = sched;
}
@@ -1819,7 +1820,8 @@
multiclass VOPC_Helper <vopc op, string opName, list<dag> pat32,
list<dag> pat64, bit DefExec, string revOp,
VOPProfile p, list<SchedReadWrite> sched> {
- defm _e32 : VOPC_m <op, p.Ins32, p.Asm32, pat32, opName, DefExec, p, sched>;
+ defm _e32 : VOPC_m <op, p.Ins32, p.Asm32, pat32, opName, DefExec, p, sched,
+ revOp>;
defm _e64 : VOP3_C_m <op, (outs VOPDstS64:$dst), p.Ins64, opName#p.Asm64, pat64,
opName, p.HasModifiers, DefExec, revOp, sched>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16600.46139.patch
Type: text/x-patch
Size: 1242 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160127/a4d529ef/attachment.bin>
More information about the llvm-commits
mailing list