[AMDGPU] Simplify AMDGPUAnnotateUniformValues::visitBranchInst. NFC.

A BranchInst is always the terminator of its containing BasicBlock.
This commit is contained in:
Jay Foad 2021-03-23 16:54:01 +00:00
parent a0f48d57a9
commit fd142e6c18
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ bool AMDGPUAnnotateUniformValues::isClobberedInFunction(LoadInst * Load) {
void AMDGPUAnnotateUniformValues::visitBranchInst(BranchInst &I) {
if (DA->isUniform(&I))
setUniformMetadata(I.getParent()->getTerminator());
setUniformMetadata(&I);
}
void AMDGPUAnnotateUniformValues::visitLoadInst(LoadInst &I) {