I don't see any reason not to unconditionally retrieve TLI, it's fairly
cheap.
Fixes calls-errno.ll under NPM.
Paths
| Differential D91476
[DCE] Always get TargetLibraryInfo ClosedPublic Authored by aeubanks on Nov 13 2020, 11:35 PM.
Details
Summary I don't see any reason not to unconditionally retrieve TLI, it's fairly Fixes calls-errno.ll under NPM.
Diff Detail
Event TimelineComment Actions actually the legacy PM does the same thing, and also opt registers TLI analysis, will take another look aeubanks retitled this revision from [DCE] Always get TargetLibraryAnalysis to [DCE] Always get TargetLibraryInfo.Nov 15 2020, 11:40 AM Comment Actionslooks like opt registers its own TargetLibraryAnalysis but that doesn't count as running it, so getCachedResult returns null This revision is now accepted and ready to land.Nov 17 2020, 8:23 PM This revision was landed with ongoing or failed builds.Nov 17 2020, 8:41 PM Closed by commit rGee7d315cd939: [DCE] Always get TargetLibraryInfo (authored by aeubanks). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 305966 llvm/lib/Transforms/Scalar/DCE.cpp
llvm/test/Transforms/DCE/calls-errno.ll
|