This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Clean up update_llc_test_checks CodeGen tests
ClosedPublic

Authored by scott.linder on Oct 24 2019, 1:16 PM.

Details

Summary

Some tests have been hand edited without removing the
update_llc_test_checks header, some have slightly outdated CHECK lines
which still pass, and some have additional comments which
update_llc_test_checks pushes towards the function body.

Diff Detail

Event Timeline

scott.linder created this revision.Oct 24 2019, 1:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2019, 1:16 PM
arsenm accepted this revision.Oct 24 2019, 2:22 PM
This revision is now accepted and ready to land.Oct 24 2019, 2:22 PM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Oct 24 2019, 11:59 PM

This broke a test on Windows: http://45.33.8.238/win/1083/step_10.txt

FAIL: LLVM :: CodeGen/AMDGPU/split-arg-dbg-value.ll (8621 of 34117)
******************** TEST 'LLVM :: CodeGen/AMDGPU/split-arg-dbg-value.ll' FAILED ********************
Script:
--
: 'RUN: at line 2';   c:\src\llvm-project\out\gn\bin\llc.exe -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < C:\src\llvm-project\llvm\test\CodeGen\AMDGPU\split-arg-dbg-value.ll | c:\src\llvm-project\out\gn\bin\filecheck.exe -check-prefix=GCN C:\src\llvm-project\llvm\test\CodeGen\AMDGPU\split-arg-dbg-value.ll
--
Exit Code: 1

Command Output (stdout):
--
$ ":" "RUN: at line 2"
$ "c:\src\llvm-project\out\gn\bin\llc.exe" "-mtriple=amdgcn-amd-amdhsa" "-mcpu=gfx900"
$ "c:\src\llvm-project\out\gn\bin\filecheck.exe" "-check-prefix=GCN" "C:\src\llvm-project\llvm\test\CodeGen\AMDGPU\split-arg-dbg-value.ll"
# command stderr:
C:\src\llvm-project\llvm\test\CodeGen\AMDGPU\split-arg-dbg-value.ll:8:13: error: GCN-NEXT: expected string not found in input
; GCN-NEXT: .file 0 "/tmp/dbg.cl" md5 0x0f834f91e91489a5ff6308040ddbd175
            ^
<stdin>:9:2: note: scanning from here
 .file 0 "/Users/matt/src/llvm/tmp/dbg.cl" md5 0x0f834f91e91489a5ff6308040ddbd175
 ^
<stdin>:9:24: note: possible intended match here
 .file 0 "/Users/matt/src/llvm/tmp/dbg.cl" md5 0x0f834f91e91489a5ff6308040ddbd175
                       ^

error: command failed with exit status: 1

Sadly the Windows bots on LLVM's real build waterfall are still pulling svn and haven't cycled since the github switch, but I'm almost certain that they'd see the same problem if they would cycle.

Can you take a look?

Yes, I can post a patch, I didn't consider the path at all. I think the test just can't use update_llc_test_checks.

Should be fixed in 7ad3636c30a

Thanks! That helped :)