forked from OSchip/llvm-project
[AMDGPU] Simplify AMDGPUAnnotateUniformValues::visitBranchInst. NFC.
A BranchInst is always the terminator of its containing BasicBlock.
This commit is contained in:
parent
a0f48d57a9
commit
fd142e6c18
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue