Skip to content

Commit

Permalink
[OpenMP][OMPIRBuilder] Remove redundant initialization of IsTargetDev…
Browse files Browse the repository at this point in the history
…ice (#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))).
  • Loading branch information
skatrak authored Aug 14, 2024
1 parent 0a28c69 commit 92dc51c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ struct OMPInformationCache : public InformationCache {
void recollectUses() {
for (int Idx = 0; Idx < RFIs.size(); ++Idx)
recollectUsesForFunction(static_cast<RuntimeFunction>(Idx));
OMPBuilder.Config.IsTargetDevice = isOpenMPDevice(OMPBuilder.M);
}

// Helper function to inherit the calling convention of the function callee.
Expand Down

0 comments on commit 92dc51c

Please sign in to comment.