This is an archive of the discontinued LLVM Phabricator instance.

[LegacyDivergenceAnalysis] Add NewPM support
ClosedPublic

Authored by gandhi21299 on Jan 19 2023, 2:46 PM.

Diff Detail

Event Timeline

gandhi21299 created this revision.Jan 19 2023, 2:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 2:46 PM
gandhi21299 requested review of this revision.Jan 19 2023, 2:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 2:46 PM

Applied clang-format

gandhi21299 planned changes to this revision.Jan 19 2023, 2:50 PM
  • Correct checks in always-uniform.ll
gandhi21299 added a project: Restricted Project.
arsenm accepted this revision.Jan 19 2023, 3:46 PM
arsenm added inline comments.
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
417

No TTI probably shouldn’t be allowed

This revision is now accepted and ready to land.Jan 19 2023, 3:46 PM
gandhi21299 added inline comments.Jan 19 2023, 9:24 PM
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
417

L421 already checks for that, doesn't it?

  • Fixed debug prints in both PM versions
arsenm added inline comments.Jan 20 2023, 5:58 AM
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
417

I'm saying it shouldn't need to. What happens if you run opt without a triple?

  • Use getResult instead of getCachedResult
gandhi21299 added inline comments.Jan 20 2023, 10:45 AM
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
417

After the changes I just made, LegacyDA withdraws at L419 when -mtriple=... is not passed.

gandhi21299 marked 2 inline comments as done.Jan 20 2023, 2:25 PM

Thanks for the review Matt, I will commit this patch.

This revision was landed with ongoing or failed builds.Jan 20 2023, 2:53 PM
This revision was automatically updated to reflect the committed changes.