This is an archive of the discontinued LLVM Phabricator instance.

[UniformityAnalysis] Fix some file headers and pass names
ClosedPublic

Authored by foad on Feb 16 2023, 1:09 AM.

Diff Detail

Event Timeline

foad created this revision.Feb 16 2023, 1:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2023, 1:09 AM
foad requested review of this revision.Feb 16 2023, 1:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2023, 1:09 AM
foad added inline comments.
llvm/include/llvm/CodeGen/MachineUniformityAnalysis.h
10

I assume this comment was a cut-n-paste error, unless there is some very subtle distinction between "uniformity info" and "uniform info"?

llvm/lib/Analysis/UniformityAnalysis.cpp
128–129

This just sounds better to me. Any objections?

Thanks for cleaning this up! It's mildly embarrassing that all this copy-pasta went through!

llvm/include/llvm/Analysis/UniformityAnalysis.h
9–10

Actually this whole description is wrong. There are no convergene intrinsics in LLVM yet! The file description should simply say "LLVM IR instance of the generic uniformity analysis".

llvm/include/llvm/CodeGen/MachineUniformityAnalysis.h
10

I suggest "Machine IR instance of the generic uniformity analysis"

llvm/lib/Analysis/UniformityAnalysis.cpp
127–128

Perhaps this should also be "uniformity"? For example, the loop info analysis and the cycle info analysis are simply called "loops" and "cycles" respectively. This might need changes in the lit tests that invoke this analysis by name.

128–129

Sounds better to me too!

foad marked 3 inline comments as done.Feb 16 2023, 2:31 AM
foad added inline comments.
llvm/lib/Analysis/UniformityAnalysis.cpp
127–128

Yes, that seems consistent with other analyses.

sameerds accepted this revision.Feb 16 2023, 3:01 AM
This revision is now accepted and ready to land.Feb 16 2023, 3:01 AM
foad marked an inline comment as done.Feb 16 2023, 3:11 AM
foad added inline comments.
llvm/lib/Analysis/UniformityAnalysis.cpp
127–128

This only changed the legacy pass name. The non-legacy pass name was already "uniformity" and that's what the tests use.

This revision was landed with ongoing or failed builds.Feb 16 2023, 3:12 AM
This revision was automatically updated to reflect the committed changes.