Skip to content

Commit 92dc51c

Browse files
authored
[OpenMP][OMPIRBuilder] Remove redundant initialization of IsTargetDevice (llvm#140)
This property of the `OpenMPIRBuilderConfig` is already initialized in the constructor for `OMPInformationCache`. This looks to be a leftover after a merge from main (comment [here](llvm#67000 (comment))).
1 parent 0a28c69 commit 92dc51c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,6 @@ struct OMPInformationCache : public InformationCache {
549549
void recollectUses() {
550550
for (int Idx = 0; Idx < RFIs.size(); ++Idx)
551551
recollectUsesForFunction(static_cast<RuntimeFunction>(Idx));
552-
OMPBuilder.Config.IsTargetDevice = isOpenMPDevice(OMPBuilder.M);
553552
}
554553

555554
// Helper function to inherit the calling convention of the function callee.

0 commit comments

Comments
 (0)