[PATCH] D31762: AMDGPU: Add new amdgcn.init.exec intrinsics
    Nicolai Hähnle via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Apr 24 09:19:51 PDT 2017
    
    
  
nhaehnle accepted this revision.
nhaehnle added a comment.
This revision is now accepted and ready to land.
I don't see anything wrong with the code.
I agree that the design is a bit iffy. It's almost like these intrinsics are something that is part of the calling convention. But even these intrinsics cannot quite lead to optimal code for merged monolithic shaders, because there's an unnecessary initialization of EXEC in the first part of the shader.
Since what we need to do here in general really doesn't fit well into LLVM IR semantics, I suspect that no matter what we come up with, it's bound to be ugly. So we might as well go with this particular solution here.
https://reviews.llvm.org/D31762
    
    
More information about the llvm-commits
mailing list