When merging waitcnt info from preds, add a S_WAITCNT 0 at the top of a block if a pred has not yet been visited (so incomplete info re: preds) and we're sure that we will not revisit the block.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/CodeGen/AMDGPU/waitcnt-no-preds.ll | ||
---|---|---|
3 | I was not successful in my attempts to create a mir test; with llvm.amdgcn.buffer.load.f32(), mir-generation fails; without llvm.amdgcn.buffer.load.f32(), the generated code is perturbed and the bug is no longer hit. I did, however, reduce the *ll a fair bit. |
s/pred/Pred