llvm.org GIT mirror llvm / f2194d3
R600: CF_PUSH is the same on Evergreen and Cayman reviewed-by: Vincent Lejeune <vljn at ovi.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199839 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 6 years ago
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
371371 MaxStack = std::max(MaxStack, CurrentStack);
372372 HasPush = true;
373373 if (ST.hasCaymanISA() && CurrentLoopDepth > 1) {
374 BuildMI(MBB, MI, MBB.findDebugLoc(MI), TII->get(AMDGPU::CF_PUSH_CM))
374 BuildMI(MBB, MI, MBB.findDebugLoc(MI), TII->get(AMDGPU::CF_PUSH_EG))
375375 .addImm(CfCount + 1)
376376 .addImm(1);
377377 MI->setDesc(TII->get(AMDGPU::CF_ALU));
17931793 "JUMP @$ADDR POP:$POP_COUNT"> {
17941794 let COUNT = 0;
17951795 }
1796 def CF_PUSH_EG : CF_CLAUSE_EG<11, (ins i32imm:$ADDR, i32imm:$POP_COUNT),
1797 "PUSH @$ADDR POP:$POP_COUNT"> {
1798 let COUNT = 0;
1799 }
17961800 def CF_ELSE_EG : CF_CLAUSE_EG<13, (ins i32imm:$ADDR, i32imm:$POP_COUNT),
17971801 "ELSE @$ADDR POP:$POP_COUNT"> {
17981802 let COUNT = 0;
18691873 let COUNT = 0;
18701874 }
18711875
1872 def CF_PUSH_CM : CF_CLAUSE_EG<11, (ins i32imm:$ADDR, i32imm:$POP_COUNT), "PUSH @$ADDR POP:$POP_COUNT"> {
1873 let COUNT = 0;
1874 }
18751876
18761877 def : Pat<(fsqrt f32:$src), (MUL R600_Reg32:$src, (RECIPSQRT_CLAMPED_cm $src))>;
18771878