aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2016-03-18 20:32:04 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2016-03-18 20:32:04 +0000
commitfa771811b3cf146ce0cadd1995d149ed50acc96d (patch)
tree6bc5f0d7ca92a96dcc1851c91f147bb05df02515
parentd7f2e34e040d048c4741586d90f42f0919f09344 (diff)
downloadllvm-fa771811b3cf146ce0cadd1995d149ed50acc96d.zip
llvm-fa771811b3cf146ce0cadd1995d149ed50acc96d.tar.gz
llvm-fa771811b3cf146ce0cadd1995d149ed50acc96d.tar.bz2
AMDGPU: add missing braces around multi-line if block
This fixes an issue with rL263658 pointed out by Tom Stellard. llvm-svn: 263823
-rw-r--r--llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
index 2a645d1..a2dfc64 100644
--- a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
@@ -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;
+ }
}
}