This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Uniform branch conditions can originate with intrinsics
ClosedPublic

Authored by nhaehnle on May 4 2016, 12:51 PM.

Details

Summary

Discovered by Dave Airlie, fixes an assertion in Khronos OpenGL CTS
GL43-CTS.shader_storage_buffer_object.advanced-matrix.

In this particular case, the buffer load intrinsic fed into a uniform
conditional branch, and led the brcond lowering down the wrong path.

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle updated this revision to Diff 56189.May 4 2016, 12:51 PM
nhaehnle retitled this revision from to AMDGPU: Uniform branch conditions can originate with intrinsics.
nhaehnle updated this object.
nhaehnle added reviewers: tstellarAMD, arsenm.
nhaehnle added a subscriber: llvm-commits.
arsenm accepted this revision.May 4 2016, 1:22 PM
arsenm edited edge metadata.

LGTM

test/CodeGen/AMDGPU/uniform-branch-intrinsic-cond.ll
4–5 ↗(On Diff #56189)

This can be removed

7 ↗(On Diff #56189)

Space after ;

This revision is now accepted and ready to land.May 4 2016, 1:22 PM
This revision was automatically updated to reflect the committed changes.