Remove #include included for testing.
This commit is contained in:
13
ctx.cpp
13
ctx.cpp
@@ -741,6 +741,7 @@ FunctionEmitContext::Break(bool doCoherenceCheck) {
|
||||
// that have executed a 'break' statement:
|
||||
// breakLanes = breakLanes | mask
|
||||
AssertPos(currentPos, breakLanesPtr != NULL);
|
||||
|
||||
llvm::Value *mask = GetInternalMask();
|
||||
llvm::Value *breakMask = LoadInst(breakLanesPtr,
|
||||
"break_mask");
|
||||
@@ -879,7 +880,7 @@ FunctionEmitContext::jumpIfAllLoopLanesAreDone(llvm::BasicBlock *target) {
|
||||
finishedLanes = BinaryOperator(llvm::Instruction::Or, finishedLanes,
|
||||
continued, "returned|breaked|continued");
|
||||
}
|
||||
|
||||
|
||||
finishedLanes = BinaryOperator(llvm::Instruction::And,
|
||||
finishedLanes, GetFunctionMask(),
|
||||
"finished&func");
|
||||
@@ -923,6 +924,16 @@ FunctionEmitContext::RestoreContinuedLanes() {
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FunctionEmitContext::ClearBreakLanes() {
|
||||
if (breakLanesPtr == NULL)
|
||||
return;
|
||||
|
||||
// breakLanes = 0
|
||||
StoreInst(LLVMMaskAllOff, breakLanesPtr);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FunctionEmitContext::StartSwitch(bool cfIsUniform, llvm::BasicBlock *bbBreak) {
|
||||
llvm::Value *oldMask = GetInternalMask();
|
||||
|
||||
Reference in New Issue
Block a user