This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Return better Changed status from SILowerControlFlow
ClosedPublic

Authored by foad on Feb 17 2022, 1:40 AM.

Diff Detail

Event Timeline

foad created this revision.Feb 17 2022, 1:40 AM
foad requested review of this revision.Feb 17 2022, 1:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2022, 1:40 AM
piotr added inline comments.Feb 18 2022, 2:04 AM
llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
913

It looks optimizeEndCf may also make some changes, but you detect this already earlier in the swtich statement (when checking for the presence of SI_END_CF), so it does not require any further changes, right?

foad added inline comments.Feb 18 2022, 2:08 AM
llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
913

Right, it won't do anything unless there was an SI_END_CF instruction in the function, which was detected earlier.

piotr accepted this revision.Feb 18 2022, 2:09 AM

LGTM

This revision is now accepted and ready to land.Feb 18 2022, 2:09 AM
This revision was landed with ongoing or failed builds.Feb 18 2022, 2:13 AM
This revision was automatically updated to reflect the committed changes.