summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SIInsertWaits.cpp
Commit message (Collapse)AuthorAgeFilesLines
* R600: Proper insert S_WAITCNT instructionsTom Stellard2013-01-181-0/+353
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: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Christian König <deathsimple@vodafone.de> llvm-svn: 172846
OpenPOWER on IntegriCloud