Skip to content

Commit c198b85

Browse files
committed
Fix comment.
1 parent 37c6b7b commit c198b85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4501,8 +4501,9 @@ static void createTargetLoopWorkshareCall(
45014501
Module &M = OMPBuilder->M;
45024502
IRBuilder<> &Builder = OMPBuilder->Builder;
45034503
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.
45064507
if (OMPBuilder->Config.isGPU()) {
45074508
Builder.restoreIP({InsertBlock, std::prev(InsertBlock->end())});
45084509
LLVMContext &Ctx = M.getContext();

0 commit comments

Comments
 (0)