File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4501,8 +4501,9 @@ static void createTargetLoopWorkshareCall(
4501
4501
Module &M = OMPBuilder->M ;
4502
4502
IRBuilder<> &Builder = OMPBuilder->Builder ;
4503
4503
Value *TripCount = TripCountOrig;
4504
- // FIXME(JAN): The trip count is 1 larger than it should be for GPU, this may
4505
- // not be the right way to fix it, but this works for now.
4504
+ // The trip count is 1 larger than it should be for GPU, this is because
4505
+ // of how the deviceRTL functions work with clang. TODO: make the trip
4506
+ // count consistent between both so we don't have to subtract one here.
4506
4507
if (OMPBuilder->Config .isGPU ()) {
4507
4508
Builder.restoreIP ({InsertBlock, std::prev (InsertBlock->end ())});
4508
4509
LLVMContext &Ctx = M.getContext ();
You can’t perform that action at this time.
0 commit comments