Skip to content

Commit

Permalink
[OpenMP][OMPIRBuilder] Remove redundant initialization of IsTargetDevice
Browse files Browse the repository at this point in the history
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 committed Aug 14, 2024
1 parent d878a91 commit 73a78ba
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 73a78ba

Please sign in to comment.