summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-05-08 22:09:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-05-08 22:09:57 +0000
commit01434f9377953ffae92e973bdc43e4a7101889e7 (patch)
tree43229e25ab36890a1e8d49151b750707e6359170 /llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll
parent5f8e88cd69417cec63657ba16642c674e442f7b5 (diff)
downloadbcm5719-llvm-01434f9377953ffae92e973bdc43e4a7101889e7.tar.gz
bcm5719-llvm-01434f9377953ffae92e973bdc43e4a7101889e7.zip
AMDGPU: Select VOP3 form of add
The VOP3 form should always be the preferred selection, to be shrunk later. This should only be an optimization issue, but this partially works around a problem from clobbering VCC when SIFixSGPRCopies rewrites an SCC defining operation directly to VCC. 3 of the testcases are regressions from failing to fold the immediate in cases it should. These can be avoided by improving the VCC liveness handling in SIFoldOperands. Simply increasing the threshold to computeRegisterLiveness works, although this is common enough that VCC liveness should probably be tracked throughout the pass. The hack of leaving behind an implicit_def instruction to avoid breaking iterator wastes instruction count, which inhibits finding the VCC def in long chains of adds. Doing this however exposes different, worse looking regressions from poor scheduling behavior. This could probably be avoided around by forcing the shrink of the addc here, but the scheduler should probably be fixed. The r600 add test needs to be split out because it asserts on the arguments in the new test during the calling convention lowering. llvm-svn: 360293
Diffstat (limited to 'llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll')
-rw-r--r--llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll b/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll
index 748f04754e4..4a4203d2a52 100644
--- a/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll
+++ b/llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll
@@ -12,7 +12,7 @@
; LINE: v_mov_b32_e32 v{{[0-9]+}}, 0x888
; LINE: ; {{.*}}source-lines.cl:3
; LINE: ; {{.*}}source-lines.cl:4
-; LINE: v_add_u32_e32
+; LINE: v_add_u32_e64
; LINE: ; {{.*}}source-lines.cl:5
; LINE: flat_store_dword
; Epilogue.
@@ -28,7 +28,7 @@
; SOURCE: v_mov_b32_e32 v{{[0-9]+}}, 0x888
; SOURCE: ; int var1 = 0x888;
; SOURCE: ; int var2 = var0 + var1;
-; SOURCE: v_add_u32_e32
+; SOURCE: v_add_u32_e64
; SOURCE: ; *Out = var2;
; SOURCE: flat_store_dword
; Epilogue.
OpenPOWER on IntegriCloud