Skip to content

Commit 1741358

Browse files
committed
[OMPIRBuilder] Use CreateNUWMul instead of passing flags to CreateMul. NFC
1 parent 80bc38b commit 1741358

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5445,8 +5445,7 @@ OpenMPIRBuilder::collapseLoops(DebugLoc DL, ArrayRef<CanonicalLoopInfo *> Loops,
54455445
}
54465446

54475447
// TODO: Enable UndefinedSanitizer to diagnose an overflow here.
5448-
CollapsedTripCount = Builder.CreateMul(CollapsedTripCount, OrigTripCount,
5449-
{}, /*HasNUW=*/true);
5448+
CollapsedTripCount = Builder.CreateNUWMul(CollapsedTripCount, OrigTripCount);
54505449
}
54515450

54525451
// Create the collapsed loop control flow.

0 commit comments

Comments
 (0)