Skip to content
Commit c4cabef7 authored by Tom Stellard's avatar Tom Stellard
Browse files

R600: Proper insert S_WAITCNT instructions



Some instructions like memory reads/writes are executed
asynchronously, so we need to insert S_WAITCNT instructions
to block before accessing their results. Previously we have
just inserted S_WAITCNT instructions after each async
instruction, this patch fixes this and adds a prober
insertion pass.

Patch by: Christian König

Tested-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
Signed-off-by: default avatarChristian König <deathsimple@vodafone.de>
llvm-svn: 172846
parent be8ebeeb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment