Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Improve codegen for conditional relocs#1228

Merged
JaxLinAMD merged 1 commit intoGPUOpen-Drivers:devfrom
jayfoad:conditional-reloc
May 7, 2021
Merged

Improve codegen for conditional relocs#1228
JaxLinAMD merged 1 commit intoGPUOpen-Drivers:devfrom
jayfoad:conditional-reloc

Conversation

@jayfoad
Copy link
Copy Markdown
Member

@jayfoad jayfoad commented Apr 28, 2021

Truncating the reloc value to i1 forces the backend to generate code
that ignores the high bits of the reloc value. Using a compare with
zero instead lets the backend generate slightly simpler code by folding
the reloc into a compare instruction.

Truncating the reloc value to i1 forces the backend to generate code
that ignores the high bits of the reloc value. Using a compare with
zero instead lets the backend generate slightly simpler code by folding
the reloc into a compare instruction.
@jayfoad jayfoad requested review from amdrexu and trenouf as code owners April 28, 2021 09:26
@jayfoad jayfoad requested a review from s-perron April 28, 2021 09:26
@amdvlk-admin
Copy link
Copy Markdown

Test summary for commit 13044e1

Driver commits used in build
  • CWPACK: amd-master 7387247eb9889ddcabbc1053b9c2052e253b088e
  • METROHASH: amd-master 3c566dd9cda44ca7fd97659e0b53ac953f9037d2
  • PAL: dev 56f2e165b889bd7ca147ff853e6f1372ed90d4fe
  • SPVGEN: dev 5bf4618ac00d4675f57ca5b571a485bbc4d4fa33
  • XGL: dev 48cc8192aaf909286661c8c825ee6eefe989f0e4
  • LLVM-PROJECT: amd-gfx-gpuopen-dev 839f787f2061f4dea2f33f280be4a108d4df8bc7
CTS tests (Failed: 1/224667)
  • Built with version 1.2.5.2
  • Rhel 8.2, Gfx10
    • Passed: 30577/56304 (54.3%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 25727/56304 (45.7%)
    Ubuntu 18.04, Gfx9
    • Passed: 30576/56304 (54.3%)
    • Failed: 1/56304 (0.0%)

      Failures:

      FAILURE: dEQP-VK.memory.pipeline_barrier.host_read_host_write.1048576
      Stack trace: Script:
      32:HostMemoryAccess Result differs from reference, Expected: 0x00000070, Got: 0x00000058, At offset: 442597
      
      

    • Not Supported: 25727/56304 (45.7%)
    Ubuntu 20.04, Gfx8
    • Passed: 30327/55755 (54.4%)
    • Failed: 0/55755 (0.0%)
    • Not Supported: 25428/55755 (45.6%)
    Ubuntu 20.04, Gfx103
    • Passed: 34150/56304 (60.7%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 22154/56304 (39.3%)

@amdvlk-admin
Copy link
Copy Markdown

Test summary for commit 13044e1

Driver commits used in build
  • CWPACK: amd-master 7387247eb9889ddcabbc1053b9c2052e253b088e
  • METROHASH: amd-master 3c566dd9cda44ca7fd97659e0b53ac953f9037d2
  • PAL: dev 0168557a0715bf47a55ffe9858276cde1e74cc1d
  • SPVGEN: dev 5bf4618ac00d4675f57ca5b571a485bbc4d4fa33
  • XGL: dev d5d37d69a0d4bd01cc93b8e806b18f4040a13e6d
  • LLVM-PROJECT: amd-gfx-gpuopen-dev 839f787f2061f4dea2f33f280be4a108d4df8bc7
CTS tests (Failed: 1/194551)
  • Built with version 1.2.5.2
  • Rhel 8.2, Gfx10
    • Passed: 30577/56304 (54.3%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 25727/56304 (45.7%)
    Ubuntu 18.04, Gfx9
    • Passed: 18969/26188 (72.4%)
    • Failed: 1/26188 (0.0%)

      Failures:

      FAILURE: dEQP-VK.ssbo.layout.3_level_array.scalar.column_major_mat2x3_comp_access
      Stack trace: Script:
      Crash
      
      

    • Not Supported: 7218/26188 (27.6%)
    Ubuntu 20.04, Gfx8
    • Passed: 30319/55755 (54.4%)
    • Failed: 0/55755 (0.0%)
    • Not Supported: 25436/55755 (45.6%)
    Ubuntu 20.04, Gfx103
    • Passed: 34150/56304 (60.7%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 22154/56304 (39.3%)

@amdvlk-admin
Copy link
Copy Markdown

Test summary for commit 13044e1

Driver commits used in build
  • CWPACK: amd-master 7387247eb9889ddcabbc1053b9c2052e253b088e
  • METROHASH: amd-master 3c566dd9cda44ca7fd97659e0b53ac953f9037d2
  • PAL: dev 0168557a0715bf47a55ffe9858276cde1e74cc1d
  • SPVGEN: dev 5bf4618ac00d4675f57ca5b571a485bbc4d4fa33
  • XGL: dev d5d37d69a0d4bd01cc93b8e806b18f4040a13e6d
  • LLVM-PROJECT: amd-gfx-gpuopen-dev c337d1aceea39d0d12fa1813621e126b4a162212
CTS tests (Failed: 0/224667)
  • Built with version 1.2.5.2
  • Rhel 8.2, Gfx10
    • Passed: 30577/56304 (54.3%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 25727/56304 (45.7%)
    Ubuntu 18.04, Gfx9
    • Passed: 30577/56304 (54.3%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 25727/56304 (45.7%)
    Ubuntu 20.04, Gfx8
    • Passed: 30319/55755 (54.4%)
    • Failed: 0/55755 (0.0%)
    • Not Supported: 25436/55755 (45.6%)
    Ubuntu 20.04, Gfx103
    • Passed: 34150/56304 (60.7%)
    • Failed: 0/56304 (0.0%)
    • Not Supported: 22154/56304 (39.3%)

@JaxLinAMD JaxLinAMD merged commit 347061f into GPUOpen-Drivers:dev May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants