From 36d53f95f6f1c9e9e4363436d0c79517943e55da Mon Sep 17 00:00:00 2001 From: Nicolai Haehnle Date: Fri, 18 Mar 2016 20:32:04 +0000 Subject: [PATCH] AMDGPU: add missing braces around multi-line if block This fixes an issue with rL263658 pointed out by Tom Stellard. llvm-svn: 263823 --- lib/Target/AMDGPU/SILowerControlFlow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/AMDGPU/SILowerControlFlow.cpp b/lib/Target/AMDGPU/SILowerControlFlow.cpp index 2a645d15ca2..a2dfc641d75 100644 --- a/lib/Target/AMDGPU/SILowerControlFlow.cpp +++ b/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; + } } }