Skip to content

Commit 4e29d25

Browse files
author
serge-sans-paille
committed
Fix OpenMP deduplicateRuntimeCalls return status
Differential Revision: https://reviews.llvm.org/D86705
1 parent 5621571 commit 4e29d25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,8 @@ struct OpenMPOpt {
657657

658658
for (Function *F : SCC) {
659659
for (auto DeduplicableRuntimeCallID : DeduplicableRuntimeCallIDs)
660-
deduplicateRuntimeCalls(*F,
661-
OMPInfoCache.RFIs[DeduplicableRuntimeCallID]);
660+
Changed |= deduplicateRuntimeCalls(
661+
*F, OMPInfoCache.RFIs[DeduplicableRuntimeCallID]);
662662

663663
// __kmpc_global_thread_num is special as we can replace it with an
664664
// argument in enough cases to make it worth trying.

0 commit comments

Comments
 (0)