summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-11-29 00:46:46 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-11-29 00:46:46 +0000
commit0bc688116c95d74a1b72a650607eab1f8fdc2a33 (patch)
tree241502224e7feda1d8e6409af6202a7cd76884a4 /llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll
parent3666e9c54b61a5b90387213d586c6a0751462178 (diff)
downloadbcm5719-llvm-0bc688116c95d74a1b72a650607eab1f8fdc2a33.tar.gz
bcm5719-llvm-0bc688116c95d74a1b72a650607eab1f8fdc2a33.zip
AMDGPU/SI: Avoid moving PHIs to VALU when phi values are defined in scalar branches
Reviewers: arsenm Subscribers: arsenm, llvm-commits, kzhuravl Differential Revision: https://reviews.llvm.org/D23417 llvm-svn: 288095
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll')
-rw-r--r--llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll b/llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll
index b112c49b69e..0d919bbf85e 100644
--- a/llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll
+++ b/llvm/test/CodeGen/AMDGPU/cf-loop-on-constant.ll
@@ -98,6 +98,9 @@ for.body:
; GCN: v_cmp_eq_u32_e32 vcc, 1,
; GCN: [[LOOPBB:BB[0-9]+_[0-9]+]]
+; GCN: s_add_i32 s{{[0-9]+}}, s{{[0-9]+}}, 0x80
+; GCN: s_add_i32 s{{[0-9]+}}, s{{[0-9]+}}, 4
+
; GCN: s_cbranch_vccnz [[LOOPBB]]
; GCN-NEXT: ; BB#2
; GCN-NEXT: s_endpgm
OpenPOWER on IntegriCloud