1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

AMDGPU: add missing braces around multi-line if block

This fixes an issue with rL263658 pointed out by Tom Stellard.

llvm-svn: 263823
This commit is contained in:
Nicolai Haehnle 2016-03-18 20:32:04 +00:00
parent e5657d5298
commit 36d53f95f6

View File

@ -136,7 +136,7 @@ bool SILowerControlFlow::shouldSkip(MachineBasicBlock *From,
for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end();
NumInstr < SkipThreshold && I != E; ++I) {
if (I->isBundle() || !I->isBundled())
if (I->isBundle() || !I->isBundled()) {
// When a uniform loop is inside non-uniform control flow, the branch
// leaving the loop might be an S_CBRANCH_VCCNZ, which is never taken
// when EXEC = 0. We should skip the loop lest it becomes infinite.
@ -145,6 +145,7 @@ bool SILowerControlFlow::shouldSkip(MachineBasicBlock *From,
if (++NumInstr >= SkipThreshold)
return true;
}
}
}