This is an archive of the discontinued LLVM Phabricator instance.

[flang] Removed unnecessary llvm/CodeGen/SelectionDAGNodes.h include.
ClosedPublic

Authored by vzakhari on May 3 2023, 9:31 AM.

Details

Diff Detail

Event Timeline

vzakhari created this revision.May 3 2023, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2023, 9:31 AM
vzakhari requested review of this revision.May 3 2023, 9:31 AM
This revision is now accepted and ready to land.May 3 2023, 9:32 AM
chapuni accepted this revision.May 3 2023, 11:29 AM

Fine.

But I wonder why this didn't have LINK_COMPONENTS before. I guess this would rely on transitive deps.
(LLT impl was provided by LLVMSupport before)

Fine.

But I wonder why this didn't have LINK_COMPONENTS before. I guess this would rely on transitive deps.
(LLT impl was provided by LLVMSupport before)

Good question! It turns out the problem is caused by an unnecessary inclusion of llvm/CodeGen/SelectionDAGNodes.h that ends up including LowLevelType.h. I will upload the diff shortly.

vzakhari updated this revision to Diff 519202.May 3 2023, 12:17 PM
vzakhari retitled this revision from [flang] Added missing dependency on CodeGenTypes. to [flang] Removed unnecessary llvm/CodeGen/SelectionDAGNodes.h include..

I am not certain about this change. Ok if this resolves your matter.

I guess the issue was because Debug build would instantiate everything. So, cleaning up unused headers would be good idea.

ps. I expect cmake -DCMAKE_OPTIMIZE_DEPENDENCIES:BOOL=ON . would discover more hidden issues.