This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Use UniformityAnalysis in CodeGenPrepare
ClosedPublic

Authored by Pierre-vh on Mar 6 2023, 12:21 AM.

Details

Summary

A little extra change was needed in UA because it didn't consider
InvokeInst and it made call-constexpr.ll assert.

Diff Detail

Event Timeline

Pierre-vh created this revision.Mar 6 2023, 12:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 12:21 AM
Pierre-vh requested review of this revision.Mar 6 2023, 12:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 12:21 AM
foad added inline comments.Mar 6 2023, 12:27 AM
llvm/lib/Analysis/UniformityAnalysis.cpp
35

What was the purpose of the assert? Maybe remove it instead, or insert that the instruction has non-void type or something?

Pierre-vh added inline comments.Mar 6 2023, 12:32 AM
llvm/lib/Analysis/UniformityAnalysis.cpp
35

Not sure what the assert is for, I think @sameerds wrote it

arsenm accepted this revision.Mar 6 2023, 4:01 AM
This revision is now accepted and ready to land.Mar 6 2023, 4:01 AM
arsenm added inline comments.Mar 6 2023, 4:02 AM
llvm/lib/Analysis/UniformityAnalysis.cpp
35

I'd guess this should be I.getType()->isFirstClassType()

sameerds accepted this revision.Mar 6 2023, 4:19 AM
sameerds added inline comments.
llvm/lib/Analysis/UniformityAnalysis.cpp
35

Unfortunately, this is in a template that needs to work with MIR too. I am okay with just dropping the assert.

Pierre-vh updated this revision to Diff 502588.Mar 6 2023, 4:26 AM

Removing assert

This revision was landed with ongoing or failed builds.Mar 6 2023, 4:27 AM
This revision was automatically updated to reflect the committed changes.