added mask for tasking function

This commit is contained in:
Evghenii
2014-01-06 16:18:28 +01:00
parent 7fbe2eba59
commit 3972d740a6
4 changed files with 15 additions and 9 deletions

View File

@@ -359,7 +359,7 @@ Function::emitCode(FunctionEmitContext *ctx, llvm::Function *function,
// entire thing inside code that tests to see if the mask is all
// on, all off, or mixed. If this is a simple function, then this
// isn't worth the code bloat / overhead.
bool checkMask = (type->isTask == true && g->target->getISA() != Target::NVPTX) ||
bool checkMask = (type->isTask == true) ||
(
#if defined(LLVM_3_1)
(function->hasFnAttr(llvm::Attribute::AlwaysInline) == false)