Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp | ||
---|---|---|
413 | The "nothing else to do" refers to the rest of the function body, which got moved into checkForQueuePtr(). The short-circuiting logical-or before calling this function is the same thing now. | |
465–466 | Not really. "nothing else to do" simply means "return early" here. |
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp | ||
---|---|---|
465–466 | amdgpu-queue-ptr isn't an attribute, amdgpu-no-queue-ptr |
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp | ||
---|---|---|
465–466 | Ah, I see. Just like the comment before this one, it is actually referring to "the queue pointer" and not the attribute. I didn't write this code ... git is confused about code that got moved up/down. There are multiple places in this file that still talk about "needs a queue ptr attribute" in the positive sense. Might be good to clean that up separately. This patch merely moves stuff around and converts the hard-coded mask bits into those generated from enums. |
Fixed stale comments that mention the attribute amdgpu-queue-ptr in the positive sense.
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp | ||
---|---|---|
400 | I don't think we need to checkForQueuePtr when NeedsQueuePtr is |
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp | ||
---|---|---|
400 | Indeed. I am relying on the short-circuiting nature of the logical-or to achieve that. |
Lost the comment?