Remove (unused) IfStmt::doAnyCheck.

This commit is contained in:
Matt Pharr
2011-11-03 16:08:19 -07:00
parent d528533fba
commit f1d8ff96ce
2 changed files with 2 additions and 5 deletions

View File

@@ -428,9 +428,8 @@ DeclStmt::EstimateCost() const {
IfStmt::IfStmt(Expr *t, Stmt *ts, Stmt *fs, bool checkCoherence, SourcePos p)
: Stmt(p), test(t), trueStmts(ts), falseStmts(fs),
doAllCheck(checkCoherence &&
!g->opt.disableCoherentControlFlow),
doAnyCheck(test->GetType() != NULL &&
test->GetType()->IsVaryingType()) {
!g->opt.disableCoherentControlFlow) {
// have to wait until after type checking to initialize doAnyCheck.
}
@@ -849,7 +848,6 @@ IfStmt::emitVaryingIf(FunctionEmitContext *ctx, llvm::Value *ltest) const {
ctx->EndIf();
}
else {
assert(doAnyCheck);
llvm::BasicBlock *bDone = ctx->CreateBasicBlock("if_done");
emitMaskMixed(ctx, oldMask, ltest, bDone);
ctx->SetCurrentBasicBlock(bDone);