mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[AMDGPU] Simplify AMDGPUAnnotateUniformValues::visitBranchInst. NFC.
A BranchInst is always the terminator of its containing BasicBlock.
This commit is contained in:
parent
5699686601
commit
2de727df6f
@ -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
Block a user