<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54168>54168</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
RISCV Clang intrinsic tests are too big, timing out in Phabricator pre-commit CI
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:RISC-V
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fhahn
</td>
</tr>
</table>
<pre>
Multiple RISCV intrinsics tests are too large and consistently time out in the Phabricator pre-commit CI. See below for some of the most problematic ones.
One of the files that times out ( `clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vluxseg.c`) almost has 30k lines. Those files likely need to be split up
```
Time | Test
-- | --
| 60,050 ms | x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics::vloxseg.cScript: -- : 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -cc1 -internal-isystem /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -nostdsysteminc -triple riscv64 -target-feature +f -target-feature +d -target-feature +zfh -target-feature +v -disable-O0-optnone -emit-llvm /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vloxseg.c -o - \| /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -S -mem2reg \| /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck --check-prefix=CHECK-RV64 /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vloxseg.c
| 60,070 ms | x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics::vluxseg.cScript: -- : 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -cc1 -internal-isystem /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -nostdsysteminc -triple riscv64 -target-feature +f -target-feature +d -target-feature +zfh -target-feature +v -disable-O0-optnone -emit-llvm /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vluxseg.c -o - \| /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -S -mem2reg \| /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck --check-prefix=CHECK-RV64 /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vluxseg.c
| 60,060 ms | x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics-overloaded::vloxseg.cScript: -- : 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -cc1 -internal-isystem /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -nostdsysteminc -triple riscv64 -target-feature +f -target-feature +d -target-feature +v -disable-O0-optnone -emit-llvm /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vloxseg.c -o - \| /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -S -mem2reg \| /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck --check-prefix=CHECK-RV64 /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vloxseg.c
| 60,050 ms | x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics-overloaded::vluxseg.c
Time Test
60,050 ms [x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics::vloxseg.c](https://reviews.llvm.org/harbormaster/unit/view/2832719/)
Script:
--
: 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -cc1 -internal-isystem /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -nostdsysteminc -triple riscv64 -target-feature +f -target-feature +d -target-feature +zfh -target-feature +v -disable-O0-optnone -emit-llvm /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vloxseg.c -o - | /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -S -mem2reg | /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck --check-prefix=CHECK-RV64 /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vloxseg.c
60,070 ms [x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics::vluxseg.c](https://reviews.llvm.org/harbormaster/unit/view/2832720/)
Script:
--
: 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -cc1 -internal-isystem /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -nostdsysteminc -triple riscv64 -target-feature +f -target-feature +d -target-feature +zfh -target-feature +v -disable-O0-optnone -emit-llvm /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vluxseg.c -o - | /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -S -mem2reg | /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck --check-prefix=CHECK-RV64 /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics/vluxseg.c
60,060 ms [x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics-overloaded::vloxseg.c](https://reviews.llvm.org/harbormaster/unit/view/2832721/)
Script:
--
: 'RUN: at line 3'; /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang -cc1 -internal-isystem /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -nostdsysteminc -triple riscv64 -target-feature +f -target-feature +d -target-feature +v -disable-O0-optnone -emit-llvm /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vloxseg.c -o - | /var/lib/buildkite-agent/builds/llvm-project/build/bin/opt -S -mem2reg | /var/lib/buildkite-agent/builds/llvm-project/build/bin/FileCheck --check-prefix=CHECK-RV64 /var/lib/buildkite-agent/builds/llvm-project/clang/test/CodeGen/RISCV/rvv-intrinsics-overloaded/vloxseg.c
60,050 ms [x64 debian > Clang.CodeGen/RISCV/rvv-intrinsics-overloaded::vluxseg.c](https://reviews.llvm.org/harbormaster/unit/view/2832722/)
```
https://reviews.llvm.org/harbormaster/unit/152224/
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWd9v2zYQ_mvklwMFmbL840EPidJsxbB1SNK-U9LJ4kyJhki5yf76HWnHcZukwxoZG1bBhmgfj-Tdd3efSDDX5UP6a6-s3CqEm_e32SeQre1ka2RhwKKxBkSHYLUGJbo1gmhLKDT1G4utVQ9gZYOge0sDwdYIv9ci72QhrO5g2yErdNNIC9n7EG4RIUelP0NFnUa7gZUf1GhjSVvnChthZQG6RRMG0VUQXeyfH9qjciUVknG1sH5x41cP-BKCeVQo0a4Dfu1MpybTJf6ELf3yzlHb7XbsyUWmd9gpLUosqW-n-nuD67CgiQK-AqG8XbUwEEcbUNIZBXe1No9GKLlBwqBFLAkjcg7MVpG3_fbUdjfd_nsivHO4BYsM7pypXsSYFzB20Mt4cBF5kbMni5IIGuP_389nUGIuRQtB_A4y53X4d84G8QV9d0rvnbwtOrm1JAG3LjUBX9x8_M39ImSdsxCTKIgvAcChIzp6KpnTM--lKjfSIhNrSoNHiXEKatcwCuUfWBzlrpXOMB8eYEUxBWcYdq1QTJoHSqbm7Wvsxz2mwDQJo5Bwu5ZtofoSgbUUzXK_GMmAETAu7ztpih0ByqzLcMsqFLanpA_4ZfWSsCQ8XpL_WdUviXdevZRGUHazDxHTW9tSfgMjMyxzvny_6_8w332SH-LvzdJAsU8yl1MDhZi8A3YLrMGGd7geePZrKrusxmJDSVu4ljSxkvdBfJX9_C77hd18okj-G3C-UrOLYWq2H2v2h67ZfqzZM8D5Ss3O31azp5uK8ZV71vL9L9Xp13vJ8TV7ZmTPs0t-oXq_ZIvj7j2IVk9795O1SR4kl0Ns0YPkis41tbVb38Ov3QDcSfxsQgdpqDsHYy26XHeNoCpz0ehb6VB1atTwZcwX05UfvNrbeqShx2PHwbORkH6Y_cQzcjojM_1faek5F51s-QcggX5gEuDRSAIjCXzrUDGSwADHiZMzxBtI4PVDxHB8MB35YDyljBxwLkyHPBh841QyGB3wUzp48c7iO1eZJpzzmRvkZ5mUaVyu4pWYWGkVpvt7J4_D0-3TV5dPuaTpM3ffI0nrcN306lXTpO9U-qWxa2nrPg9J5RDu51GXxvTosiGZTefLSZ0W8XS1xKJc8PkiKfliniynJV-uFlFZiSouJ0rkqExKQQ04z0WxwdaFxznEKIacYjORKY84j2L6rKJZnISLZTRL4iQX8TROCkqJWYSNkOqI46RLvWV5vzbUqSQB8dQpjJHrFtGvSvOL3ta6S6ta1O3Eu5B6-_8Ckg0OYg">