Disable break optimization and change return check to use full mask.

This commit is contained in:
james.brodman
2013-05-21 10:00:22 -04:00
parent 9f44e597d6
commit 4ea02c59d8
2 changed files with 4 additions and 1 deletions

View File

@@ -1266,7 +1266,7 @@ FunctionEmitContext::CurrentLanesReturned(Expr *expr, bool doCoherenceCheck) {
LoadInst(returnedLanesPtr, "old_returned_lanes");
llvm::Value *newReturnedLanes =
BinaryOperator(llvm::Instruction::Or, oldReturnedLanes,
GetInternalMask(), "old_mask|returned_lanes");
GetFullMask(), "old_mask|returned_lanes");
// For 'coherent' return statements, emit code to check if all
// lanes have returned