Skip to content

Commit 8da484e

Browse files
tolejnic4igcbot
authored andcommitted
Revert of '[IGC OCLDisable PromoteBools for __builtinn_IB_ function calls.'
Revert of 'This fixes asserts seen in WorgGraphs tests where builtin function conversion was skipped for __builtin_IB_memfence fn call because of bitcasts inserted due to i1 to i8 promotion of its function args.'
1 parent 777d75d commit 8da484e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/AdaptorOCL/preprocess_spvir/PromoteBools.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ Function* PromoteBools::promoteFunction(Function* function)
589589
}
590590

591591
#if !defined(WDDM_ANDROID_IGC)
592-
if (BiFManager::BiFManagerHandler::IsBiF(function))
592+
if (BiFManager::BiFManagerHandler::IsBiF(function)
593+
|| function->getName().startswith("__builtin_IB_"))
593594
{
594595
return function;
595596
}

0 commit comments

Comments
 (0)