Remove #include included for testing.
This commit is contained in:
7
stmt.cpp
7
stmt.cpp
@@ -532,7 +532,6 @@ IfStmt::emitMaskedTrueAndFalse(FunctionEmitContext *ctx, llvm::Value *oldMask,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Emit code for an if test that checks the mask and the test values and
|
||||
tries to be smart about jumping over code that doesn't need to be run.
|
||||
*/
|
||||
@@ -902,8 +901,10 @@ void DoStmt::EmitCode(FunctionEmitContext *ctx) const {
|
||||
// the code for the test. This is only necessary for varying loops;
|
||||
// 'uniform' loops just jump when they hit a continue statement and
|
||||
// don't mess with the mask.
|
||||
if (!uniformTest)
|
||||
if (!uniformTest) {
|
||||
ctx->RestoreContinuedLanes();
|
||||
ctx->ClearBreakLanes();
|
||||
}
|
||||
llvm::Value *testValue = testExpr->GetValue(ctx);
|
||||
if (!testValue)
|
||||
return;
|
||||
@@ -1111,6 +1112,8 @@ ForStmt::EmitCode(FunctionEmitContext *ctx) const {
|
||||
// test code.
|
||||
ctx->SetCurrentBasicBlock(bstep);
|
||||
ctx->RestoreContinuedLanes();
|
||||
ctx->ClearBreakLanes();
|
||||
|
||||
if (step)
|
||||
step->EmitCode(ctx);
|
||||
ctx->BranchInst(btest);
|
||||
|
||||
Reference in New Issue
Block a user