mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +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) {
|
void AMDGPUAnnotateUniformValues::visitBranchInst(BranchInst &I) {
|
||||||
if (DA->isUniform(&I))
|
if (DA->isUniform(&I))
|
||||||
setUniformMetadata(I.getParent()->getTerminator());
|
setUniformMetadata(&I);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMDGPUAnnotateUniformValues::visitLoadInst(LoadInst &I) {
|
void AMDGPUAnnotateUniformValues::visitLoadInst(LoadInst &I) {
|
||||||
|
Loading…
Reference in New Issue
Block a user